* src/folderview.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 6 Apr 2004 16:16:18 +0000 (16:16 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 6 Apr 2004 16:16:18 +0000 (16:16 +0000)
fix bug #472, "filter not updated when renaming folder"

ChangeLog.claws
configure.ac
src/folderview.c

index 2f0c83b..858d9b4 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-06 [alfons]    0.9.10claws41
+
+       * src/folderview.c
+               fix bug #472, "filter not updated when renaming folder" 
+
 2004-04-06 [alfons]    0.9.10claws40
 
        * src/messageview.[ch]
index 62d752c..c4b68bd 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=40
+EXTRA_VERSION=41
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 08bd424..61003fd 100644 (file)
@@ -2107,13 +2107,15 @@ static void folderview_rename_folder_cb(FolderView *folderview, guint action,
 
        Xstrdup_a(old_path, item->path, {g_free(new_folder); return;});
 
+       old_id = folder_item_get_identifier(item);
+       
        if (item->folder->klass->rename_folder(item->folder, item, new_folder) < 0) {
                alertpanel_error(_("The folder could not be renamed.\n"
                                   "The new folder name is not allowed."));
+               g_free(old_id);
                return;
        }
 
-       old_id = folder_item_get_identifier(item);
        /* if (FOLDER_TYPE(item->folder) == F_MH)
                prefs_filtering_rename_path(old_path, item->path); */
        new_id = folder_item_get_identifier(item);