Fix quit shortcut connect() call

This commit is contained in:
Petr Mrázek 2014-04-21 21:48:58 +02:00
parent 7de007502c
commit a9dfe6d7ec

View File

@ -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