From: Flavio Tordini Date: Wed, 1 Jul 2009 17:08:20 +0000 (+0200) Subject: Really fixed focus issue X-Git-Tag: 0.4~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=51eda34d76647165056b081174e3c25db423c5ec;p=minitube Really fixed focus issue --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index e3e3373..f4fff96 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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 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(); } }