From 5eeb9ebb5df889b4a98e1f2deeb6f0bdefedcfe4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 25 Apr 2014 10:21:12 -0700 Subject: 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 --- qt-ui/about.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui') 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() -- cgit v1.2.3-70-g09d2