[Commits] mimeview.c 1.83.2.188 1.83.2.189
colin at claws-mail.org
colin at claws-mail.org
Fri May 11 18:53:25 CEST 2012
Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv5004/src
Modified Files:
Tag: gtk2
mimeview.c
Log Message:
2012-05-11 [colin] 3.8.0cvs40
* src/mimeview.c
* src/common/utils.c
Fix bug 2659, 'E-mail attachments are handled
inconsistently'
Fix problems iterating the mime tree, and determine
whether a file is an email without To:
Index: mimeview.c
===================================================================
RCS file: /home/claws-mail/claws/src/mimeview.c,v
retrieving revision 1.83.2.188
retrieving revision 1.83.2.189
diff -u -d -r1.83.2.188 -r1.83.2.189
--- mimeview.c 20 Jan 2012 22:30:03 -0000 1.83.2.188
+++ mimeview.c 11 May 2012 16:53:23 -0000 1.83.2.189
@@ -630,10 +630,15 @@
has_parent = gtk_tree_model_iter_parent(model, &parent, &iter);
if (!gtk_tree_model_iter_next(model, &iter)) {
- if (has_parent && gtk_tree_model_iter_next(model, &parent)) {
+ while (has_parent) {
+ GtkTreeIter saved_parent = parent;
gtk_tree_path_up(path);
- gtk_tree_path_next(path);
- return TRUE;
+ if (gtk_tree_model_iter_next(model, &parent)) {
+ gtk_tree_path_next(path);
+ return TRUE;
+ } else {
+ has_parent = gtk_tree_model_iter_parent(model, &parent, &saved_parent);
+ }
}
} else {
More information about the Commits
mailing list