From df9ca5b0c2238a42cfd829ab9ad30d574e4ece29 Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Tue, 8 Oct 2019 21:42:11 +0200 Subject: [dolphin/search] Add method isIndexEnabled() Summary: Extracts the logic for checking if the current path is indexed to its own method. Test Plan: No behavior changes Reviewers: elvisangelaccio, ngraham, meven Reviewed By: ngraham, meven Subscribers: meven, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D24478 --- src/search/dolphinsearchbox.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/search/dolphinsearchbox.h') diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h index bb71049c7..9ccd50b83 100644 --- a/src/search/dolphinsearchbox.h +++ b/src/search/dolphinsearchbox.h @@ -160,6 +160,8 @@ private: void updateFacetsToggleButton(); + bool isIndexingEnabled() const; + private: bool m_startedSearching; bool m_active; -- cgit v1.3