[Commits] [SCM] claws branch, master, updated. 3.12.0-97-gd3d6ac6

claws at claws-mail.org claws at claws-mail.org
Fri Oct 2 18:37:57 CEST 2015


The branch, master has been updated
       via  d3d6ac6eff909f8012b49cd8d6f42ee0df10cebd (commit)
      from  3c64fb648dbb155c971fd0108f40fee7a36d2cb1 (commit)

Summary of changes:
 src/mimeview.c |    4 ++++
 1 file changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit d3d6ac6eff909f8012b49cd8d6f42ee0df10cebd
Author: Paul <paul at claws-mail.org>
Date:   Fri Oct 2 17:37:51 2015 +0100

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

diff --git a/src/mimeview.c b/src/mimeview.c
index 038abf6..019c94a 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -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:

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list