-2002-11-08 [colin] 0.8.5claws82
+2002-11-07 [colin] 0.8.5claws83
+
+ * src/prefs_filtering.c
+ Fix rule rewriting when moving a leaf folder to a
+ shorter path
+
+2002-11-07 [colin] 0.8.5claws82
* src/prefs_filtering.c
fix a leak
action->destination = dest_path;
} else { /* for non-leaf folders */
/* compare with trailing slash */
- if(!strncmp(old_path_with_sep, action->destination, oldpathlen+1)) {
+ if (!strncmp(old_path_with_sep, action->destination, oldpathlen+1)) {
suffix = action->destination + oldpathlen + 1;
dest_path = g_strconcat(new_path,
action->destination = dest_path;
}
}
+ } else {
+ /* folder-moving a leaf */
+ if (!strcmp(old_path, action->destination)) {
+ dest_path = g_strdup(new_path);
+ g_free(action->destination);
+ action->destination = dest_path;
+ }
}
}
g_free(old_path_with_sep);