Skip to content

Commit

Permalink
disable ViewPresentation action if document has no pages
Browse files Browse the repository at this point in the history
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 8, 2018
1 parent 28243c0 commit de8c0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/ev-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit de8c0ae

Please sign in to comment.