Description: Make Ctrl+Q work on normal X11 desktops Upstream changed from explicit Ctrl+Q to QkeySequence::Quit, which Qt defines to Ctrl+Q for OSX, KDE and Gnome, but not for other X11 desktops, so explicitely add Ctrl+Q back. Author: Jakob Haufe <sur5r@sur5r.net> Forwarded: no Last-Update: 2012-02-16 diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index bb815c0..5f82732 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -334,6 +334,9 @@ void MainWindow::createActions() { quitAct = new QAction(tr("&Quit"), this); quitAct->setMenuRole(QAction::QuitRole); quitAct->setShortcut(QKeySequence(QKeySequence::Quit)); + quitAct->setShortcuts(QList<QKeySequence>() + << QKeySequence(QKeySequence::Quit) + << QKeySequence(Qt::CTRL + Qt::Key_Q)); quitAct->setStatusTip(tr("Bye")); actions->insert("quit", quitAct); connect(quitAct, SIGNAL(triggered()), SLOT(quit()));