diff options
| author | Amol Godbole <[email protected]> | 2023-10-10 22:39:03 -0500 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2023-10-12 09:43:37 +0000 |
| commit | 2f39eb51b6d92172905a4c39f3c1bcd8053f593b (patch) | |
| tree | 87555dd69e0a40e617f7106636df8aab694c14d4 /src/search | |
| parent | 9e6891deaa6265ad8b5575948d5b342588066296 (diff) | |
DolphinView: get rid of writeStateChanged signal in setActive()
The signal writeStateChanged() was not working because it is not connected
to slotWriteStateChanged() slots when the active view changes. Replace the
signal with direct calls to the slots.
Also, do not delay openRequest signal in DolphinSearchBox::slotSearchTextChanged.
It's no longer required.
BUG: 440366
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index a09f25293..a3cec6fe7 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -265,9 +265,7 @@ void DolphinSearchBox::slotSearchTextChanged(const QString &text) if (text.isEmpty()) { // Restore URL when search box is cleared by closing and reopening the box. emitCloseRequest(); - QTimer::singleShot(0, this, [this] { - Q_EMIT openRequest(); - }); + Q_EMIT openRequest(); } else { m_startSearchTimer->start(); } |
