From 51eda34d76647165056b081174e3c25db423c5ec Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Wed, 1 Jul 2009 19:08:20 +0200 Subject: [PATCH] Really fixed focus issue --- src/MainWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); } } -- 2.39.5