fix Bug 458, 'Folder View remaining empty after removing a NEWS account'
authorPaul Mangan <paul@claws-mail.org>
Mon, 15 Mar 2004 05:56:52 +0000 (05:56 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 15 Mar 2004 05:56:52 +0000 (05:56 +0000)
ChangeLog.claws
configure.ac
src/folderview.c

index 4c31a34..774b596 100644 (file)
@@ -1,6 +1,13 @@
+2004-02-15 [paul]      0.9.10claws14
+
+       * src/folderview.c
+               fix Bug 458, 'Folder View remaining empty after 
+               removing a NEWS account' (was also true of IMAP
+               accounts)
+
 2004-03-15 [paul]      0.9.10claws13
 
-       * folderview.c
+       * src/folderview.c
                fix folderview invisibility of newly subscribed
                newsgroups
 
index a7d7c08..b107e8e 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=13
+EXTRA_VERSION=14
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 54e18cb..b2b676f 100644 (file)
@@ -2266,9 +2266,10 @@ static void folderview_rm_imap_server_cb(FolderView *folderview, guint action,
        }
 
        account = item->folder->account;
+       folderview_unselect(folderview);
+       summary_clear_all(folderview->summaryview);
        folder_destroy(item->folder);
        account_destroy(account);
-       gtk_ctree_remove_node(ctree, folderview->selected);
        account_set_menu();
        main_window_reflect_prefs_all();
        folder_write_list();
@@ -2437,9 +2438,10 @@ static void folderview_rm_news_server_cb(FolderView *folderview, guint action,
        }
 
        account = item->folder->account;
-       folder_destroy(item->folder);
+       folderview_unselect(folderview);
+       summary_clear_all(folderview->summaryview);
+       folder_destroy(item->folder);
        account_destroy(account);
-       gtk_ctree_remove_node(ctree, folderview->selected);
        account_set_menu();
        main_window_reflect_prefs_all();
        folder_write_list();