error panel when a folder could not be created (closes bug #471080)
authorChristoph Hohmann <reboot@gmx.ch>
Sat, 27 Oct 2001 16:53:38 +0000 (16:53 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Sat, 27 Oct 2001 16:53:38 +0000 (16:53 +0000)
ChangeLog.claws
src/folderview.c

index 3c12457..2f4733b 100644 (file)
@@ -6,6 +6,10 @@
        * src/compose.c
                code cleanup, nearly killed all of wwp's patch
                for folder's default account in compose
+       * src/folderview.c
+               error panel when a folder could not be created
+               (closes bug #471080 new folder name & already
+                existing file)
 
 2001-10-26 [alfons]
 
index 9336837..27c9757 100644 (file)
@@ -1545,8 +1545,13 @@ static void folderview_new_folder_cb(FolderView *folderview, guint action,
        }
 
        new_item = item->folder->create_folder(item->folder, item, new_folder);
+       if (!new_item) {
+               alertpanel_error(_("The folder `%s' could not be created."), 
+                                new_folder);
+               g_free(new_folder);
+               return;
+       } 
        g_free(new_folder);
-       if (!new_item) return;
 
        gtk_clist_freeze(GTK_CLIST(ctree));