From ae488b13186a4cb5d0bc5d7f23b07467d6638979 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 20 Apr 2011 20:03:51 +0200 Subject: Improve usability of Search Panel If the Search Panel is shown outside the context of the "Find" mode it will be always enabled and does a global search. Only if the user is in the "Find" mode and the searching is restricted to the current directory the Search Panel might get disabled if the current directory is not indexed. This solves the major usability issue that it was not clear for the users whether a global or restricted search is done. --- src/dolphinmainwindow.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 4ba745125..9fb83bfa0 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -206,6 +206,13 @@ private slots: /** Replaces the URL navigator by a search box to find files. */ void find(); + /** + * Is invoked when the "Find" is active and the search location + * (From Here/Everywhere) has been changed. Updates the + * enabled state of the Search Panel. + */ + void slotSearchLocationChanged(); + /** * Updates the text of the paste action dependent on * the number of items which are in the clipboard. -- cgit v1.3