From: Flavio Tordini Date: Wed, 1 Jul 2009 16:34:09 +0000 (+0200) Subject: ensure focus does not end up to the search box X-Git-Tag: 0.4~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=860cdbe9d5fe9750014c6aa2e89cd5375f03586a;p=minitube ensure focus does not end up to the search box as it would steal the Space shortcut --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 3774bdc..e3e3373 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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(); } }