From 4a4c4187a0ee763fc247319389f1fae017423542 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 20 Sep 2001 23:52:34 +0000 Subject: Don't "note" the folder if we failed to get it. 2001-09-20 Jeffrey Stedfast * mail-tools.c (mail_tool_uri_to_folder): Don't "note" the folder if we failed to get it. svn path=/trunk/; revision=13030 --- mail/mail-tools.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'mail/mail-tools.c') diff --git a/mail/mail-tools.c b/mail/mail-tools.c index 250e7c2f06..16e37047d9 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -360,14 +360,9 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex) camel_object_unref (CAMEL_OBJECT (store)); } - if (camel_exception_is_set (ex)) { - if (folder) { - camel_object_unref (CAMEL_OBJECT (folder)); - folder = NULL; - } - } else { - vfolder_register_source(folder); - mail_note_folder(folder); + if (folder) { + vfolder_register_source (folder); + mail_note_folder (folder); } camel_url_free (url); -- cgit