if (folder_read_list() < 0) {
if (!run_wizard(mainwin, TRUE))
exit(1);
+ main_window_reflect_prefs_all_now();
folder_write_list();
}
folder_item_write_cache(item);
}
+static gboolean sc_exiting = FALSE;
+
static void exit_sylpheed(MainWindow *mainwin)
{
gchar *filename;
+ sc_exiting = TRUE;
+
debug_print("shutting down\n");
inc_autocheck_timer_remove();
{
MainWindow *mainwin = data;
+ if (sc_exiting == TRUE) {
+ debug_print("exit pending\n");
+ return;
+ }
+ sc_exiting = TRUE;
+ debug_print("exiting\n");
if (compose_get_compose_list()) {
gint val = alertpanel(_("Really quit?"),
_("Composing message exists."),
gtk_main_quit();
}
+gboolean sylpheed_is_exiting(void)
+{
+ return sc_exiting;
+}
+
/*
* CLAWS: want this public so crash dialog can delete the
* lock file too
#ifdef SIGPIPE
if (sig == SIGPIPE) {
debug_print("caugth SIGPIPE, maybe X closing!\n");
+ signal(SIGPIPE, SIG_IGN); /* ignore following sigpipes */
folder_write_list();
folder_func_to_all_folders(save_all_caches, GINT_TO_POINTER(0));
return;