fix a bug after "check for new messages"; remove unnecessary check
[claws.git] / src / folderview.c
index 96cc5f337e90e5dfb2e41daae4973723163e255f..59ebec08cc3ec395e8ab34557d97ccbe71c03d96 100644 (file)
@@ -1840,6 +1840,12 @@ static void folderview_update_tree_cb(FolderView *folderview, guint action,
                folderview_check_new(item->folder);
        else
                folderview_rescan_tree(item->folder);
+       
+       if (folderview->opened) {
+               item = gtk_ctree_node_get_row_data(ctree, folderview->opened);
+               if (item)
+                       folderview_update_item(item, TRUE);
+       }
 }
 
 static void folderview_new_folder_cb(FolderView *folderview, guint action,