aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-02-26 19:35:24 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-02-26 19:35:24 +0800
commit24c80204b473ea27d42265e60e8df77c980d817c (patch)
tree33004711abd907282f06a0bb8ee07dd77fc6e6dd
parent817c73ca62adfe8846d1765ed2b927c67c3ba835 (diff)
downloadgsoc2013-evolution-24c80204b473ea27d42265e60e8df77c980d817c.tar
gsoc2013-evolution-24c80204b473ea27d42265e60e8df77c980d817c.tar.gz
gsoc2013-evolution-24c80204b473ea27d42265e60e8df77c980d817c.tar.bz2
gsoc2013-evolution-24c80204b473ea27d42265e60e8df77c980d817c.tar.lz
gsoc2013-evolution-24c80204b473ea27d42265e60e8df77c980d817c.tar.xz
gsoc2013-evolution-24c80204b473ea27d42265e60e8df77c980d817c.tar.zst
gsoc2013-evolution-24c80204b473ea27d42265e60e8df77c980d817c.zip
NOOP if the folder has changed.
2004-02-26 Not Zed <NotZed@Ximian.com> * message-list.c (regen_list_regened): NOOP if the folder has changed. svn path=/trunk/; revision=24877
-rw-r--r--mail/message-list.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 10274044a7..6403c1549c 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -3125,7 +3125,7 @@ regen_list_regen (struct _mail_msg *mm)
if (m->folder != m->ml->folder)
return;
-
+
/* if we have hidedeleted on, use a search to find it out, merge with existing search if set */
if (!camel_folder_has_search_capability(m->folder)) {
/* if we have no search capability, dont let search or hide deleted work */
@@ -3287,6 +3287,9 @@ regen_list_regened (struct _mail_msg *mm)
if (camel_operation_cancel_check(mm->cancel))
return;
+ if (m->ml->folder != m->folder)
+ return;
+
if (m->dotree) {
save_tree_state (m->ml);
@@ -3308,7 +3311,7 @@ regen_list_free (struct _mail_msg *mm)
{
struct _regen_list_msg *m = (struct _regen_list_msg *)mm;
int i;
-
+
if (m->summary) {
for (i = 0; i < m->summary->len; i++)
camel_folder_free_message_info (m->folder, m->summary->pdata[i]);
@@ -3386,7 +3389,7 @@ mail_regen_list (MessageList *ml, const char *search, const char *hideexpr, Came
return;
}
#endif
-
+
m = mail_msg_new (&regen_list_op, NULL, sizeof (*m));
m->ml = ml;
m->search = g_strdup (search);
@@ -3409,6 +3412,6 @@ mail_regen_list (MessageList *ml, const char *search, const char *hideexpr, Came
}
ml->regen = g_list_prepend(ml->regen, m);
-
+
e_thread_put (mail_thread_new, (EMsg *)m);
}