aboutsummaryrefslogtreecommitdiff
path: root/src/inc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inc.c')
-rw-r--r--src/inc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inc.c b/src/inc.c
index a8373999..dea36cfe 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -168,7 +168,8 @@ static void inc_finished(MainWindow *mainwin, gboolean new_messages)
folderview_select(mainwin->folderview, item);
} else if (prefs_common.scan_all_after_inc) {
item = mainwin->summaryview->folder_item;
- folderview_update_item(item, TRUE);
+ if (item)
+ folderview_update_item(item, TRUE);
}
}