diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-04-21 21:48:58 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-04-21 21:48:58 +0200 |
commit | a9dfe6d7ec949954b07facff71ee6023e0ced9ee (patch) | |
tree | d1eda370e1352e995f183a7748603a3ba0fa6ec6 | |
parent | 7de007502c5e4f15508934b11e5a15fd96ea4a0c (diff) | |
download | MultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.tar MultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.tar.gz MultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.tar.lz MultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.tar.xz MultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.zip |
Fix quit shortcut connect() call
-rw-r--r-- | gui/MainWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |