Fix quit shortcut connect() call
This commit is contained in:
parent
7de007502c
commit
a9dfe6d7ec
@ -119,8 +119,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
||||
|
||||
// Global shortcuts
|
||||
{
|
||||
//FIXME: This is kinda weird. and bad. We need some kind of managed shutdown.
|
||||
auto q = new QShortcut(QKeySequence::Quit, this);
|
||||
connect(q, &QShortcut::activated, qApp, &QCoreApplication::quit);
|
||||
connect(q, SIGNAL(activated()), qApp, SLOT(quit()));
|
||||
}
|
||||
|
||||
// The instance action toolbar customizations
|
||||
|
Loading…
Reference in New Issue
Block a user