fix bug 3531, 'a/z hotkeys crash Claws immediately after startup'
This commit is contained in:
parent
3c64fb648d
commit
d3d6ac6eff
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue