fix bug 3531, 'a/z hotkeys crash Claws immediately after startup'

This commit is contained in:
Paul 2015-10-02 17:37:51 +01:00
parent 3c64fb648d
commit d3d6ac6eff

View file

@ -1558,6 +1558,8 @@ void mimeview_select_next_part(MimeView *mimeview)
MimeInfo *partinfo = NULL;
gboolean has_next;
if (!mimeview->opened) return;
gtk_tree_model_get_iter(model, &iter, mimeview->opened);
path = gtk_tree_model_get_path(model, &iter);
skip:
@ -1591,6 +1593,8 @@ void mimeview_select_prev_part(MimeView *mimeview)
MimeInfo *partinfo = NULL;
gboolean has_prev;
if (!mimeview->opened) return;
gtk_tree_model_get_iter(model, &iter, mimeview->opened);
path = gtk_tree_model_get_path(model, &iter);
skip: