diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-04-25 10:21:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-25 10:21:55 -0700 |
commit | 5eeb9ebb5df889b4a98e1f2deeb6f0bdefedcfe4 (patch) | |
tree | c90253343635fd0cab9f69ccddb6004003362391 | |
parent | e253ec66d61476ab518ef475e42e9989e3af58d3 (diff) | |
download | subsurface-5eeb9ebb5df889b4a98e1f2deeb6f0bdefedcfe4.tar.gz |
Quit Subsurface with about window in front
Add ability to quit Subsurface with a Ctrl-Q shortcut even if the about
window is active.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/about.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/about.cpp b/qt-ui/about.cpp index 4a3c2fbd3..9424dd560 100644 --- a/qt-ui/about.cpp +++ b/qt-ui/about.cpp @@ -19,6 +19,8 @@ SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(p QShortcut *close = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this); connect(close, SIGNAL(activated()), this, SLOT(close())); + QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this); + connect(quit, SIGNAL(activated()), parent, SLOT(close())); } void SubsurfaceAbout::on_licenseButton_clicked() |