*** empty log message ***
[booh] / bin / booh
index 9b4410d17d767c4b894376fbd684b4e814f90dbb..4d758f2c068192fa5f16636d987ab44c0dde6a0b 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -2084,7 +2084,9 @@ def save_changes(*forced)
     end
 
     if $xmldir.attributes['thumbnails-caption']
-        $xmldir.add_attribute('thumbnails-captionfile', $subalbums_edits[$xmldir.attributes['path']][:captionfile])
+        if edit = $subalbums_edits[$xmldir.attributes['path']]
+            $xmldir.add_attribute('thumbnails-captionfile', edit[:captionfile])
+        end
     end
 
     #- remove and reinsert elements to reflect new ordering