fix a bug after "check for new messages"; remove unnecessary check
authorColin Leroy <colin@colino.net>
Sat, 12 Oct 2002 10:16:01 +0000 (10:16 +0000)
committerColin Leroy <colin@colino.net>
Sat, 12 Oct 2002 10:16:01 +0000 (10:16 +0000)
ChangeLog.claws
configure.in
src/folderview.c
src/mainwindow.c

index cb4faf72058b5967a3ca0829bbacdceb19629b39..d93e7a3bce6fa32f7c4eefa87e054f98c03f2906 100644 (file)
@@ -1,3 +1,12 @@
+2002-10-12 [colin]     0.8.5claws22
+
+       * src/folderview.c
+               Fix a bug after "Check for new messages":
+               If a folder was opened, it was still selected at
+               the end of the check, but displayed empty.
+       * src/mainwindow.c
+               Remove unnecessary check
+
 2002-10-12 [paul]
 
        * tools/README
 2002-10-12 [paul]
 
        * tools/README
index cde75854550af376c592e18bdb6183ee439af3e5..e01cff20185712b0d83f006036a3ce6c6fa51337 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws21
+EXTRA_VERSION=claws22
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
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);
                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,
 }
 
 static void folderview_new_folder_cb(FolderView *folderview, guint action,
index 4990cdc8ed81b28a630157633b7c1cc4e16fad51..076640f4350d5a8e770500d5e1a510d73f311173 100644 (file)
@@ -3564,8 +3564,7 @@ static void key_pressed (GtkWidget *widget, GdkEventKey *event,   gpointer data)
                app_exit_cb(mainwin, 0, NULL);
                return;
        case GDK_space:
                app_exit_cb(mainwin, 0, NULL);
                return;
        case GDK_space:
-               if (mainwin->folderview && mainwin->summaryview 
-                   && !mainwin->folderview->opened) {
+               if (mainwin->folderview && mainwin->summaryview ) {
                        summary_lock(mainwin->summaryview);
                        folderview_select_next_unread(mainwin->folderview);
                        summary_unlock(mainwin->summaryview);
                        summary_lock(mainwin->summaryview);
                        folderview_select_next_unread(mainwin->folderview);
                        summary_unlock(mainwin->summaryview);