aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/folderview.c1
-rw-r--r--src/inc.c3
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a10948e3..8e6139e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-05
+
+ * src/inc.c: always update summary even when
+ prefs_common.open_inbox_on_inc is true (fixes wrong unread number
+ display).
+
2010-12-24
* version 3.1.0beta6
diff --git a/src/folderview.c b/src/folderview.c
index 467b5727..048ed9a1 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -1383,6 +1383,7 @@ static void folderview_update_row(FolderView *folderview, GtkTreeIter *iter)
COL_FOREGROUND, foreground,
COL_BOLD, weight,
-1);
+ /* g_print("folderview_update_row: %s: %s\n", item->path, name); */
g_free(name);
item->updated = FALSE;
diff --git a/src/inc.c b/src/inc.c
index 0bed04ac..7f26f09e 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -175,7 +175,6 @@ static void inc_finished(MainWindow *mainwin, gint new_messages)
item = cur_account && cur_account->inbox
? folder_find_item_from_identifier(cur_account->inbox)
: folder_get_default_inbox();
- folderview_unselect(mainwin->folderview);
folderview_select(mainwin->folderview, item);
} else if (prefs_common.scan_all_after_inc) {
item = mainwin->summaryview->folder_item;
@@ -651,7 +650,7 @@ static void inc_session_destroy(IncSession *session)
static void inc_update_folder_foreach(GHashTable *table)
{
procmsg_flush_folder_foreach(table);
- folderview_update_item_foreach(table, !prefs_common.open_inbox_on_inc);
+ folderview_update_item_foreach(table, TRUE);
}
static gint inc_start(IncProgressDialog *inc_dialog)