contiunue the fix for check-at-startup, eade694613c19ffe747ccb77466070e474e3f968
[claws.git] / src / main.c
index 24150c83f6731ee969496cc54e95bab6ec6f6324..bdbdc66263ce3b1671553a0a4a5ec710b72c2664 100644 (file)
@@ -317,10 +317,11 @@ static gboolean defer_check_all(void *data)
 {
        gboolean autochk = GPOINTER_TO_INT(data);
 
-       inc_all_account_mail(static_mainwindow, autochk, FALSE,
+       if (!sc_starting) {
+               inc_all_account_mail(static_mainwindow, autochk, FALSE,
                        prefs_common.newmail_notify_manu);
 
-       if (sc_starting) {
+       } else {
                inc_all_account_mail(static_mainwindow, FALSE,
                                prefs_common.chk_on_startup,
                                prefs_common.newmail_notify_manu);