aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-07-13 00:02:02 +0800
committerPeter Williams <peterw@src.gnome.org>2000-07-13 00:02:02 +0800
commitd55f9b8a07ccaac8964e0817e23f24067a4559e2 (patch)
treef3ffddbdb066d5aabb39d5f4d0e65b66da329580
parente41d73fabba30e80877023d14e258a4246180383 (diff)
downloadgsoc2013-evolution-d55f9b8a07ccaac8964e0817e23f24067a4559e2.tar
gsoc2013-evolution-d55f9b8a07ccaac8964e0817e23f24067a4559e2.tar.gz
gsoc2013-evolution-d55f9b8a07ccaac8964e0817e23f24067a4559e2.tar.bz2
gsoc2013-evolution-d55f9b8a07ccaac8964e0817e23f24067a4559e2.tar.lz
gsoc2013-evolution-d55f9b8a07ccaac8964e0817e23f24067a4559e2.tar.xz
gsoc2013-evolution-d55f9b8a07ccaac8964e0817e23f24067a4559e2.tar.zst
gsoc2013-evolution-d55f9b8a07ccaac8964e0817e23f24067a4559e2.zip
Fix bug #378: last displayed message is still shown in an empty folder
svn path=/trunk/; revision=4110
-rw-r--r--camel/ChangeLog1
-rw-r--r--camel/camel-folder.c7
2 files changed, 7 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index fc2f2bc220..8e897990dd 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -3,6 +3,7 @@
* camel-folder.c (camel_folder_set_message_flags): Emit a message_changed
signal once the flags are set on the message.
(camel_folder_set_user_flag): Ditto.
+ (camel_folder_expunge): Emit a folder_changed if no exception.
2000-07-12 Jeffrey Stedfast <fejj@helixcode.com>
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index fffdf44650..a0f5e9d038 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -568,7 +568,12 @@ camel_folder_expunge (CamelFolder *folder, CamelException *ex)
{
g_return_if_fail (CAMEL_IS_FOLDER (folder));
- return CF_CLASS (folder)->expunge (folder, ex);
+ CF_CLASS (folder)->expunge (folder, ex);
+
+ if (! (camel_exception_is_set (ex))) {
+ gtk_signal_emit (GTK_OBJECT (folder),
+ signals[FOLDER_CHANGED], 0);
+ }
}