summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-04-21 21:48:58 +0200
committerPetr Mrázek <peterix@gmail.com>2014-04-21 21:48:58 +0200
commita9dfe6d7ec949954b07facff71ee6023e0ced9ee (patch)
treed1eda370e1352e995f183a7748603a3ba0fa6ec6 /gui
parent7de007502c5e4f15508934b11e5a15fd96ea4a0c (diff)
downloadMultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.tar
MultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.tar.gz
MultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.tar.lz
MultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.tar.xz
MultiMC-a9dfe6d7ec949954b07facff71ee6023e0ced9ee.zip
Fix quit shortcut connect() call
Diffstat (limited to 'gui')
-rw-r--r--gui/MainWindow.cpp3
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