summaryrefslogtreecommitdiff
path: root/src/about.cpp
diff options
context:
space:
mode:
authorLibravatar Mubashshir <[email protected]>2023-03-07 23:12:03 +0600
committerLibravatar Mubashshir <[email protected]>2023-03-07 23:12:03 +0600
commit594d9515ac0bc0adf50ae288b85e31c10bd90d27 (patch)
tree1e583e74017f99f48179235ec1e927e8d17bf7a4 /src/about.cpp
parentd830bfc8ce7c6763d074beafdde7cab1835d31f9 (diff)
downloadwhatsie-upstream/4.12.1.tar.gz
whatsie-upstream/4.12.1.zip
New upstream version 4.12.1upstream/4.12.1
Diffstat (limited to 'src/about.cpp')
-rw-r--r--src/about.cpp8
1 files changed, 8 insertions, 0 deletions
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"));
}