From de8c0aed9820d1f62c2e94b70cc2ae0c9f2a0c6b Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 4 Apr 2018 12:11:41 +0300 Subject: 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 --- shell/ev-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') 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); -- cgit v1.2.1