aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2000-05-02 10:59:01 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-02 10:59:01 +0800
commit2cc9dabf78074ba6dfa4f3c84285b607fdf8cc54 (patch)
treebd448a397488f7cc2afd9855f80e5fcb10b24ded
parentc65aa11c9bea4c474eef6129d82495de4784cbc5 (diff)
downloadgsoc2013-evolution-2cc9dabf78074ba6dfa4f3c84285b607fdf8cc54.tar
gsoc2013-evolution-2cc9dabf78074ba6dfa4f3c84285b607fdf8cc54.tar.gz
gsoc2013-evolution-2cc9dabf78074ba6dfa4f3c84285b607fdf8cc54.tar.bz2
gsoc2013-evolution-2cc9dabf78074ba6dfa4f3c84285b607fdf8cc54.tar.lz
gsoc2013-evolution-2cc9dabf78074ba6dfa4f3c84285b607fdf8cc54.tar.xz
gsoc2013-evolution-2cc9dabf78074ba6dfa4f3c84285b607fdf8cc54.tar.zst
gsoc2013-evolution-2cc9dabf78074ba6dfa4f3c84285b607fdf8cc54.zip
> (camel_folder_expunge): Changed to only allow expunge on an open
> folder. It doesn't make sense for mbox, otherwise (?) svn path=/trunk/; revision=2743
-rw-r--r--camel/ChangeLog2
-rw-r--r--camel/camel-folder.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 96aae92593..0eac71a00a 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -41,6 +41,8 @@
anymore (this wouldn't failed anyway, it was a GList !!!)
(camel_folder_search_complete): Removed.
(camel_folder_search_cancel): Removed.
+ (camel_folder_expunge): Changed to only allow expunge on an open
+ folder. It doesn't make sense for mbox, otherwise (?)
* camel-folder.h (struct _CamelFolder): Change permanent_flags to
a bitfield.
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index 446b511221..fdf0817a90 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -995,7 +995,7 @@ void
camel_folder_expunge (CamelFolder *folder, CamelException *ex)
{
g_assert (folder != NULL);
- g_assert (!camel_folder_is_open (folder));
+ g_assert (camel_folder_is_open (folder));
return CF_CLASS (folder)->expunge (folder, ex);
}