diff options
| author | Anthony Fieroni <[email protected]> | 2017-05-22 20:35:29 +0300 |
|---|---|---|
| committer | Anthony Fieroni <[email protected]> | 2017-05-22 20:35:29 +0300 |
| commit | 43da84eefc7d68ce86cda2d353216dbe7552fc2c (patch) | |
| tree | 024e21f52dbb2b1cfa5b16672b58c7aba082d789 /src/search/dolphinsearchbox.cpp | |
| parent | 73f885f9d3513bdfed2d22b21d0d1a88fe4f6a7a (diff) | |
Correct searchbox, split view transitions between tabs
Differential Revision: https://phabricator.kde.org/D5864
BUG: 379135
BUG: 380032
FIXED-IN: 17.04.2
Signed-off-by: Anthony Fieroni <[email protected]>
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index 5d5906b78..c6943c608 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -230,8 +230,13 @@ bool DolphinSearchBox::eventFilter(QObject* obj, QEvent* event) { switch (event->type()) { case QEvent::FocusIn: - setActive(true); - setFocus(); + // #379135: we get the FocusIn event when we close a tab but we don't want to emit + // the activated() signal before the removeTab() call in DolphinTabWidget::closeTab() returns. + // To avoid this issue, we delay the activation of the search box. + QTimer::singleShot(0, this, [this] { + setActive(true); + setFocus(); + }); break; default: |
