summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubos Koudelka <[email protected]>2013-03-01 23:35:33 +0100
committermonsta <[email protected]>2018-04-04 11:34:38 +0300
commit294923b3afd7fa2232239cd3905e78ec817fa8f7 (patch)
tree35790c7c98ca5792c7be23bdb95f0d276b1d9c2c
parentfecc271e23f91f57c4a9498dfbce67d98163c239 (diff)
downloadatril-294923b3afd7fa2232239cd3905e78ec817fa8f7.tar.bz2
atril-294923b3afd7fa2232239cd3905e78ec817fa8f7.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 25845430..26ad5af5 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -466,6 +466,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);