]> www.fi.muni.cz Git - evince.git/commitdiff
Disable "open containing folder" action when no document is loaded
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 20 Mar 2011 10:37:45 +0000 (11:37 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 20 Mar 2011 10:37:45 +0000 (11:37 +0100)
See bug #644613.

shell/ev-window.c

index 9b08e5e2ee35a1d891ae9f93463dbd16aa288310..ad9eb143a931c69f8abdf568d3c25753ad330825 100644 (file)
@@ -442,6 +442,7 @@ ev_window_setup_action_sensitivity (EvWindow *ev_window)
        ev_window_set_action_sensitive (ev_window, "FileSaveAs", has_document && ok_to_copy);
        ev_window_set_action_sensitive (ev_window, "FilePrint", has_pages && ok_to_print);
        ev_window_set_action_sensitive (ev_window, "FileProperties", has_document && has_properties);
+       ev_window_set_action_sensitive (ev_window, "FileOpenContainingFolder", has_document);
 
         /* Edit menu */
        ev_window_set_action_sensitive (ev_window, "EditSelectAll", has_pages && can_get_text);