mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
fcaf30081f
commit
5ac851c464
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue