]> cloud.milkyroute.net Git - dolphin.git/commit
Restore the URL when DolphinSearchBox is cleared
authorAmol Godbole <amolagodbole@gmail.com>
Mon, 4 Sep 2023 07:39:13 +0000 (07:39 +0000)
committerMéven Car <meven.car@kdemail.net>
Mon, 4 Sep 2023 07:39:13 +0000 (07:39 +0000)
commitc4bb3db0229bef8adee1daa183892cebba5efe72
treee2157240c6691286526a4493dbcbe3de5846b9c9
parent9ba09040134f743ca3a2082589cc943c2d4bf175
Restore the URL when DolphinSearchBox is cleared

Currently, the URL navigator is not updated when the search box is cleared. This MR restores the URL, by closing and reopening the box.

The call for emitting closeRequest() on pressing Esc has been replaced with emitCloseRequest(). The wait duration before starting a search has been reduced to 500ms to increase responsiveness.

Also, the bugfix for BUG: 423328 is slightly incorrect and causes the search term to not be displayed when opening a saved search for the first time. As a better solution for this bug, DolphinSearchBox::setText() now updates the text only if the text has changed.

BUG: 473775
src/dolphinviewcontainer.cpp
src/dolphinviewcontainer.h
src/search/dolphinsearchbox.cpp
src/search/dolphinsearchbox.h