diff options
Diffstat (limited to 'mail/em-folder-utils.c')
-rw-r--r-- | mail/em-folder-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index d457e90ecc..c2720fc5ae 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -153,7 +153,7 @@ emft_copy_folders__exec (struct _EMCopyFolders *m, camel_store_rename_folder_sync ( m->fromstore, info->full_name, toname->str, cancellable, error); - if (error != NULL) + if (error && *error) goto exception; /* this folder no longer exists, unsubscribe it */ @@ -185,7 +185,7 @@ emft_copy_folders__exec (struct _EMCopyFolders *m, cancellable, error); camel_folder_free_uids (fromfolder, uids); - if (m->delete && error == NULL) + if (m->delete && (!error || !*error)) camel_folder_synchronize_sync ( fromfolder, TRUE, NULL, NULL); @@ -195,7 +195,7 @@ emft_copy_folders__exec (struct _EMCopyFolders *m, } } - if (error != NULL) + if (error && *error) goto exception; else if (m->delete && !deleted) deleting = g_list_prepend (deleting, info); |