Revert "Fixes NB#137624, crash when creating a new folder in offline mode"
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 9 Sep 2009 13:54:07 +0000 (15:54 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 9 Sep 2009 13:54:07 +0000 (15:54 +0200)
This reverts commit 332e97a4104d0e22210ed131902587e9a67e2b29.

src/modest-ui-actions.c

index 8e4185b..214dfdc 100644 (file)
@@ -3489,7 +3489,7 @@ do_create_folder_performer (gboolean canceled,
 
                /* This happens if we have selected the outbox folder
                   as the parent */
 
                /* This happens if we have selected the outbox folder
                   as the parent */
-               if (err && err->code == TNY_SERVICE_ERROR_UNKNOWN &&
+               if (err->code == TNY_SERVICE_ERROR_UNKNOWN &&
                    TNY_IS_MERGE_FOLDER (helper->parent)) {
                        /* Show an error and retry */
                        modest_platform_information_banner ((GtkWidget *) parent_window,
                    TNY_IS_MERGE_FOLDER (helper->parent)) {
                        /* Show an error and retry */
                        modest_platform_information_banner ((GtkWidget *) parent_window,