From: Akseli Lahtinen Date: Mon, 16 Dec 2024 12:25:43 +0000 (+0000) Subject: DolphinViewContainer: make sure searchbox is initialized before setSearchPath X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/37b081331e19b8b10bc80b8aecc4ff43de2474c0?ds=inline DolphinViewContainer: make sure searchbox is initialized before setSearchPath If searchBox is not initialized, it can't be updated properly with setSearchPath due to some buttons not existing. There is also just no need to update it if it's not initialized. Make sure we check for it's initialized during setting the search path. BUG:497021 --- diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index 56e6543e7..ee425501d 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -74,7 +74,7 @@ QString DolphinSearchBox::text() const void DolphinSearchBox::setSearchPath(const QUrl &url) { - if (url == m_searchPath) { + if (url == m_searchPath || !m_initialized) { return; }