aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-07-24 06:42:59 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-07-24 06:42:59 +0800
commit1bddc83831d27affaeb2d53d6808c696cecb5021 (patch)
treec6073077b2c93a1134e9721ed4b128736ad6eae0 /composer/e-msg-composer.c
parentf14e08e0a8ebbe645ddc1396f6c5fa0d6ac48f2b (diff)
downloadgsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.tar.gz
gsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.tar.zst
gsoc2013-evolution-1bddc83831d27affaeb2d53d6808c696cecb5021.zip
restart automanager to avoid multiple dialog apearing
2002-07-23 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (autosave_run): restart automanager to avoid multiple dialog apearing svn path=/trunk/; revision=17559
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 5d044725c9..794c588b18 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -163,7 +163,6 @@ static void handle_multipart_signed (EMsgComposer *composer, CamelMultipart *mul
static void set_editor_signature (EMsgComposer *composer);
-
static GByteArray *
get_text (Bonobo_PersistStream persist, char *format)
@@ -1117,6 +1116,8 @@ struct _AutosaveManager {
};
static AutosaveManager *am = NULL;
+static void autosave_manager_start (AutosaveManager *am);
+static void autosave_manager_stop (AutosaveManager *am);
static gboolean
autosave_save_draft (EMsgComposer *composer)
@@ -1302,8 +1303,11 @@ autosave_run (gpointer data)
AutosaveManager *am = data;
g_hash_table_foreach (am->table, (GHFunc)autosave_run_foreach_cb, am);
+
+ autosave_manager_stop (am);
+ autosave_manager_start (am);
- return TRUE;
+ return FALSE;
}
static gboolean