diff options
| author | Luca Beltrame <[email protected]> | 2017-05-22 23:32:36 +0200 |
|---|---|---|
| committer | Luca Beltrame <[email protected]> | 2017-05-22 23:32:36 +0200 |
| commit | 95f9dc9de00e4663ade9506bd1b7b58816d13458 (patch) | |
| tree | 81f2378b404cc71df2f439beaaf5ac1ad0dd0dba /src/search/dolphinsearchbox.cpp | |
| parent | 588db665365e81d24e31d651f8a776c0bb714e3c (diff) | |
| parent | 43da84eefc7d68ce86cda2d353216dbe7552fc2c (diff) | |
Merge branch 'Applications/17.04'
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: |
