Skip to content
Permalink
Browse files

disable ViewPresentation action if document has no pages

follow-up to 9c08159 - this action
should be disabled when e.g. a truncated pdf is loaded
  • Loading branch information...
monsta authored and raveit65 committed Apr 4, 2018
1 parent 73ca242 commit e710942aab8622df1735170188c17002217b4823
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit e710942

Please sign in to comment.
You can’t perform that action at this time.