don't delete icons while we're deleting others
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 22 May 2006 18:32:28 +0000 (20:32 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Mon, 22 May 2006 18:32:28 +0000 (20:32 +0200)
bin/embrace

index 8feccd3aff578921273392d1b24a95de89dbe492..2316b0ddbc3cc8bd703a4260109e85e4efc38849 100755 (executable)
@@ -235,6 +235,7 @@ module Embrace
 
                def delete_at(i)
                        Kernel.raise(ContainerLockedError) unless @about_to_add.zero?
+                       Kernel.raise(ContainerLockedError) unless @add_lock_count.zero?
 
                        # icons that are placed above the one that's deleted need
                        # to be moved