dont wrongly tell that the destination directory already exists if it is empty (becau...
authorgc <gc>
Sun, 31 Jul 2005 21:22:54 +0000 (21:22 +0000)
committergc <gc>
Sun, 31 Jul 2005 21:22:54 +0000 (21:22 +0000)
bin/booh

index d84bda4b39ba7bde034261cac71c5c7ee8896185..f4627016a3c66a15448824459bf65a1bd7bb4333 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -2383,7 +2383,7 @@ def new_album
                 elsif destdir != make_dest_filename(destdir)
                     show_popup(dialog, utf8(_("Sorry, destination directory can't contain non simple alphanumeric characters.")))
                     dest.grab_focus
-                elsif File.directory?(destdir)
+                elsif File.directory?(destdir) && Dir.entries(destdir).size > 2
                     keepon = !show_popup(dialog, utf8(_("The destination directory already exists. Are you sure you want to continue?")), { :okcancel => true })
                     dest.grab_focus
                 elsif File.exists?(destdir)