From 594d9515ac0bc0adf50ae288b85e31c10bd90d27 Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Tue, 7 Mar 2023 23:12:03 +0600 Subject: New upstream version 4.12.1 --- src/about.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/about.cpp') diff --git a/src/about.cpp b/src/about.cpp index ba54a7e..81657e8 100644 --- a/src/about.cpp +++ b/src/about.cpp @@ -92,6 +92,14 @@ void About::on_debugInfoButton_clicked() { } } +void About::keyPressEvent(QKeyEvent *e) +{ + if (e->key() == Qt::Key_Escape) + this->close(); + + QWidget::keyPressEvent(e); +} + void About::on_donate_2_clicked() { QDesktopServices::openUrl(QUrl("https://opencollective.com/whatsie")); } -- cgit v1.2.3