]> git.sur5r.net Git - minitube/commitdiff
ensure focus does not end up to the search box
authorFlavio Tordini <flavio.tordini@gmail.com>
Wed, 1 Jul 2009 16:34:09 +0000 (18:34 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Wed, 1 Jul 2009 16:34:09 +0000 (18:34 +0200)
as it would steal the Space shortcut

src/MainWindow.cpp

index 3774bdc48e243f09044977313699bfcf341a668d..e3e3373288efe5b62848415820a45287caa86359 100755 (executable)
@@ -513,6 +513,10 @@ void MainWindow::compactView(bool enable) {
     } else {
         compactViewAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Return));
         stopAct->setShortcut(QKeySequence(Qt::Key_Escape));
+
+        // ensure focus does not end up to the search box
+        // as it would steal the Space shortcut
+        toolbarSearch->clearFocus();
     }
 
 }