From 9c08159f6ce959f1aa0fc87da265854e9672365e Mon Sep 17 00:00:00 2001 From: Lubos Koudelka Date: Fri, 1 Mar 2013 23:35:33 +0100 Subject: Disable view presentation if there is no document. otherwise atril crashes https://bugzilla.gnome.org/show_bug.cgi?id=685591 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=b4bf316 --- shell/ev-window.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shell') diff --git a/shell/ev-window.c b/shell/ev-window.c index 6bb7eefb..f5056cfb 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -483,6 +483,7 @@ ev_window_setup_action_sensitivity (EvWindow *ev_window) 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, "FileSendTo", has_document); + ev_window_set_action_sensitive (ev_window, "ViewPresentation", has_document); /* Edit menu */ ev_window_set_action_sensitive (ev_window, "EditSelectAll", has_pages && can_get_text); -- cgit v1.2.1