diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-04-25 17:59:32 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-25 08:49:14 -0700 |
commit | 5ac851c4641fba2ec49e0955c7ba5179a6eb4426 (patch) | |
tree | 26fe00d44cb52d71fb85d03997012183c9614a9d | |
parent | fcaf30081f5b1e6f4ae547af78270c8a251ad844 (diff) | |
download | subsurface-5ac851c4641fba2ec49e0955c7ba5179a6eb4426.tar.gz |
Quit Subsurface with yearly stats window in front
Add ability to quit Subsurface with a Ctrl-Q shortcut even if the yearly
statistics window is active.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 003f924cd..5bc89c12d 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -442,6 +442,8 @@ void MainWindow::on_actionYearlyStatistics_triggered() connect(closeKey, SIGNAL(activated()), yearlyStats, SLOT(close())); closeKey = new QShortcut(QKeySequence(Qt::Key_Escape), yearlyStats); connect(closeKey, SIGNAL(activated()), yearlyStats, SLOT(close())); + QShortcut* quitKey = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), yearlyStats); + connect(quitKey, SIGNAL(activated()), this, SLOT(close())); } /* problem here is that without more MainWindow variables or a separate YearlyStatistics * class the user needs to close the window/widget and re-open it for it to update. |