summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubos Koudelka <[email protected]>2013-03-01 23:35:33 +0100
committerraveit65 <[email protected]>2018-03-26 13:53:55 +0200
commit9c08159f6ce959f1aa0fc87da265854e9672365e (patch)
tree6de500d55144966d871e406451075372fb767849
parentdc77310536e87cce1588fab6132256ad2bd88af4 (diff)
downloadatril-9c08159f6ce959f1aa0fc87da265854e9672365e.tar.bz2
atril-9c08159f6ce959f1aa0fc87da265854e9672365e.tar.xz
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
-rw-r--r--shell/ev-window.c1
1 files changed, 1 insertions, 0 deletions
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);