Do not run config update routine on first run.
[claws.git] / src / main.c
index 11ce45e85092d7e76ff270f4add0f6e1d7a12438..747b7d2d56499302bacaa27b95a9350af6c93476 100644 (file)
@@ -1458,18 +1458,19 @@ int main(int argc, char *argv[])
                g_slist_free(plug_list);
        }
 
-       if (prefs_update_config_version() < 0) {
-               exit_claws(mainwin);
-#ifdef G_OS_WIN32
-               win32_close_log();
-#endif
-               exit(0);
-       }
-
        if (never_ran) {
                prefs_common_write_config();
                plugin_load_standard_plugins ();
+       } else {
+               if (prefs_update_config_version() < 0) {
+                       exit_claws(mainwin);
+#ifdef G_OS_WIN32
+                       win32_close_log();
+#endif
+                       exit(0);
+               }
        }
+
        /* if not crashed, show window now */
        if (!mainwin_shown) {
                /* apart if something told not to show */