From 4c5a1519ce666c6a4d8359d6552c788d752e2b26 Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Sat, 17 Nov 2012 18:58:50 +0100 Subject: [PATCH] document-manager: Never disable "find in files" action. Find in files doesn't rely on an open document so there's no reason to disable it when there's no open documents. https://bugzilla.gnome.org/show_bug.cgi?id=688548 --- plugins/document-manager/plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/document-manager/plugin.c b/plugins/document-manager/plugin.c index e6f61d9d8..2f835d6aa 100644 --- a/plugins/document-manager/plugin.c +++ b/plugins/document-manager/plugin.c @@ -623,6 +623,10 @@ update_document_ui_disable_all (AnjutaPlugin *plugin) { for (j = 0; j < action_groups[i].size; j++) { + /* Never disable find in files. */ + if (!strcmp (action_groups[i].group[j].name, "ActionEditFindFiles")) + continue; + action = anjuta_ui_get_action (ui, action_groups[i].name, action_groups[i].group[j].name); if (action_groups[i].group[j].callback) -- 2.11.4.GIT