summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubos Koudelka <[email protected]>2013-03-01 23:35:33 +0100
committerraveit65 <[email protected]>2018-03-26 15:37:02 +0200
commitc238f519cec9e1e1bad2eb3ed64e56854cd7522d (patch)
tree3bc5e1c3d63af660f2434f5f2bdf99addb36adf2
parent50bdf3f446991631713f2fba76de1b54ce7eb5b9 (diff)
downloadatril-c238f519cec9e1e1bad2eb3ed64e56854cd7522d.tar.bz2
atril-c238f519cec9e1e1bad2eb3ed64e56854cd7522d.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);