summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-04-04 12:11:41 +0300
committermonsta <[email protected]>2018-04-09 11:39:49 +0300
commitb1d39dbe2b1af7f8567f4558abefd1eb447edfd7 (patch)
tree168cf29530dd1b67031340a85e4f9c0f5448dea7
parent294923b3afd7fa2232239cd3905e78ec817fa8f7 (diff)
downloadatril-b1d39dbe2b1af7f8567f4558abefd1eb447edfd7.tar.bz2
atril-b1d39dbe2b1af7f8567f4558abefd1eb447edfd7.tar.xz
disable ViewPresentation action if document has no pages
follow-up to 294923b3afd7fa2232239cd3905e78ec817fa8f7 - this action should be disabled when e.g. a truncated pdf is loaded
-rw-r--r--shell/ev-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 26ad5af5..3b35aa26 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -466,7 +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);
+ ev_window_set_action_sensitive (ev_window, "ViewPresentation", has_pages);
/* Edit menu */
ev_window_set_action_sensitive (ev_window, "EditSelectAll", has_pages && can_get_text);