diff options
author | Monsta <[email protected]> | 2015-07-10 13:29:27 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2015-07-10 12:44:55 +0200 |
commit | 67d846c7ea70bae109489d94fb984638b5c6ef2b (patch) | |
tree | 1d94667f3a979dd162bd7565bbdb0733940eb47a /shell | |
parent | 84eab85dc4dfdeb31a06068f712ba64f6e2741f5 (diff) | |
download | atril-67d846c7ea70bae109489d94fb984638b5c6ef2b.tar.bz2 atril-67d846c7ea70bae109489d94fb984638b5c6ef2b.tar.xz |
fix crash when pressing Esc
fixes https://github.com/mate-desktop/atril/issues/136
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index bc8863a6..69c43a1e 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -4785,7 +4785,7 @@ ev_window_cmd_escape (GtkAction *action, EvWindow *window) { GtkWidget *widget; - if (!window->priv->document->iswebdocument && window->priv->view) + if (window->priv->document && !window->priv->document->iswebdocument && window->priv->view) ev_view_autoscroll_stop (EV_VIEW (window->priv->view)); widget = gtk_window_get_focus (GTK_WINDOW (window)); |