aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2003-12-04 03:24:43 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-12-04 03:24:43 +0800
commitda19e7a409b666b83895376bf4fe5b4f8d052f86 (patch)
tree08ce0b37f43d9d6ad7142e24cc098bae38de2e04
parent81a9c0d4f9420aa256934791e633618f4bc9315b (diff)
downloadgsoc2013-evolution-da19e7a409b666b83895376bf4fe5b4f8d052f86.tar.gz
gsoc2013-evolution-da19e7a409b666b83895376bf4fe5b4f8d052f86.tar.zst
gsoc2013-evolution-da19e7a409b666b83895376bf4fe5b4f8d052f86.zip
tedfast <fejj@ximian.com>
tedfast <fejj@ximian.com> * em-folder-view.c (emfv_set_folder): Sync the folder before replacing it with the new folder. svn path=/trunk/; revision=23619
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/em-folder-view.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6d3cdf0b2a..81e88df395 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2003-12-03 Jeffrey Stedfast <fejj@ximian.com>
+ * em-folder-view.c (emfv_set_folder): Sync the folder before
+ replacing it with the new folder.
+
* em-folder-tree.c (em_folder_tree_set_selected): Need to prepend
a "/" to path if the path is the url fragment. Also fixed to
select the store node if path == "/".
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index ca3df84be6..9797c0e2ac 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -332,6 +332,7 @@ emfv_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri)
emfv->folder_uri = g_strdup(uri);
if (folder != emfv->folder) {
if (emfv->folder) {
+ mail_sync_folder (emfv->folder, NULL, NULL);
if (emfv->priv->folder_changed_id)
camel_object_remove_event(emfv->folder, emfv->priv->folder_changed_id);
camel_object_unref(emfv->folder);