summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-04-04 12:11:41 +0300
committerraveit65 <[email protected]>2018-04-08 13:12:12 +0200
commitde8c0aed9820d1f62c2e94b70cc2ae0c9f2a0c6b (patch)
tree1a014715f901d502c3f47cbbaec7c97222a6d368 /shell/ev-window.c
parent28243c0141d459ec6d637eebb4c368c29a89a603 (diff)
downloadatril-de8c0aed9820d1f62c2e94b70cc2ae0c9f2a0c6b.tar.bz2
atril-de8c0aed9820d1f62c2e94b70cc2ae0c9f2a0c6b.tar.xz
disable ViewPresentation action if document has no pages
follow-up to 9c08159f6ce959f1aa0fc87da265854e9672365e - this action should be disabled when e.g. a truncated pdf is loaded
Diffstat (limited to 'shell/ev-window.c')
-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 f5056cfb..999106a3 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -483,7 +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);
+ 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);