]> git.sur5r.net Git - minitube/commitdiff
Ctrl+W quits
authorFlavio Tordini <flavio.tordini@gmail.com>
Fri, 4 Sep 2009 09:02:09 +0000 (11:02 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Fri, 4 Sep 2009 09:02:09 +0000 (11:02 +0200)
src/MainWindow.cpp

index 6e1697da541149c784c1703424777122533f0e6a..5225425be16d45f1918702b2b263b20ce4758d84 100755 (executable)
@@ -150,7 +150,7 @@ void MainWindow::createActions() {
 
     quitAct = new QAction(tr("&Quit"), this);
     quitAct->setMenuRole(QAction::QuitRole);
-    quitAct->setShortcut(tr("Ctrl+Q"));
+    quitAct->setShortcuts(QList<QKeySequence>() << QKeySequence(tr("Ctrl+Q")) << QKeySequence(Qt::CTRL + Qt::Key_W));
     quitAct->setStatusTip(tr("Bye"));
     actions->insert("quit", quitAct);
     connect(quitAct, SIGNAL(triggered()), this, SLOT(quit()));