[evolution/wip/webkit2] Bug 651112 - Hide "Search->Save search..." menu item when cannot be used



commit 92ecd6aa989408733e07a9fddb88adc6f9240dae
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 14 11:36:13 2016 +0200

    Bug 651112 - Hide "Search->Save search..." menu item when cannot be used

 shell/e-shell-searchbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c
index e3d9f1a..00073a0 100644
--- a/shell/e-shell-searchbar.c
+++ b/shell/e-shell-searchbar.c
@@ -264,7 +264,7 @@ shell_searchbar_update_search_widgets (EShellSearchbar *searchbar)
        gtk_action_set_sensitive (action, sensitive);
 
        action = E_SHELL_WINDOW_ACTION_SEARCH_SAVE (shell_window);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive && e_shell_view_get_search_rule (shell_view) != NULL);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]