From a9dfe6d7ec949954b07facff71ee6023e0ced9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 21 Apr 2014 21:48:58 +0200 Subject: [PATCH] Fix quit shortcut connect() call --- gui/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index 2e70a6a6..b0e86249 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -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