]> git.sur5r.net Git - minitube/commitdiff
Really fixed focus issue
authorFlavio Tordini <flavio.tordini@gmail.com>
Wed, 1 Jul 2009 17:08:20 +0000 (19:08 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Wed, 1 Jul 2009 17:08:20 +0000 (19:08 +0200)
src/MainWindow.cpp

index e3e3373288efe5b62848415820a45287caa86359..f4fff9633e85cc710321bb5e2f97e3029d810a89 100755 (executable)
@@ -504,6 +504,10 @@ void MainWindow::compactView(bool enable) {
     mainToolBar->setVisible(!enable);
     statusBar()->setVisible(!enable);
 
+    // ensure focus does not end up to the search box
+    // as it would steal the Space shortcut
+    toolbarSearch->setEnabled(!enable);
+
     if (enable) {
         stopAct->setShortcut(QString(""));
         QList<QKeySequence> shortcuts;
@@ -513,10 +517,6 @@ 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();
     }
 
 }