mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
e253ec66d6
commit
5eeb9ebb5d
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue