gta gui, gta view: avoid the unreliable QKeySequence::Quit, use Ctrl+Q explicitly.
authorMartin Lambers <marlam@marlam.de>
Fri, 19 Sep 2014 17:54:46 +0000 (19:54 +0200)
committerMartin Lambers <marlam@marlam.de>
Fri, 19 Sep 2014 17:54:46 +0000 (19:54 +0200)
gtatool/src/gui/gui.cpp
gtatool/src/view/widget.cpp

index 8deca30..e3e88c5 100644 (file)
@@ -798,7 +798,7 @@ GUI::GUI()
     file_export_menu->addAction(file_export_teem_action);
     file_menu->addSeparator();
     QAction *quit_action = new QAction(tr("&Quit"), this);
-    quit_action->setShortcut(QKeySequence::Quit);
+    quit_action->setShortcut(tr("Ctrl+Q")); // QKeySequence::Quit is not reliable
     connect(quit_action, SIGNAL(triggered()), this, SLOT(close()));
     file_menu->addAction(quit_action);
 
index 05a4006..5cef8de 100644 (file)
@@ -122,7 +122,7 @@ View::View() :
     connect(close_action, SIGNAL(triggered()), this, SLOT(close()));
     view_menu->addAction(close_action);
     QAction *quit_action = new QAction(tr("&Quit"), this);
-    quit_action->setShortcut(QKeySequence::Quit);
+    quit_action->setShortcut(tr("Ctrl+Q")); // QKeySequence::Quit is not reliable
     connect(quit_action, SIGNAL(triggered()), this, SLOT(request_quit()));
     view_menu->addAction(quit_action);
 }