dont abort when reordering subalbums when there is a deleted directory there
authorgc <gc>
Sun, 31 Jul 2005 18:06:48 +0000 (18:06 +0000)
committergc <gc>
Sun, 31 Jul 2005 18:06:48 +0000 (18:06 +0000)
bin/booh

index 6d83a6394c19322f74f75e7f838cfc02a12fefff..9aee45b8f424df333f9a632d40549ef19b08bf95 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -1782,7 +1782,9 @@ def change_dir
 
             elems = []
             $xmldir.elements.each('dir') { |element|
-                elems << [ element.attributes['path'], element.remove ]
+                if (!element.attributes['deleted'])
+                    elems << [ element.attributes['path'], element.remove ]
+                end
             }
             elems.sort { |a,b| $subalbums_edits[a[0]][:position] <=> $subalbums_edits[b[0]][:position] }.
                   each { |e| $xmldir.add_element(e[1]) }