diff Button.lua @ 249:46b59a9ded76

Fix some errors related to re-using action IDs
author Flick
date Mon, 28 Mar 2011 14:52:35 -0700
parents 65f2805957a0
children c918ff9ac787
line wrap: on
line diff
--- a/Button.lua	Mon Mar 28 10:43:36 2011 -0700
+++ b/Button.lua	Mon Mar 28 14:52:35 2011 -0700
@@ -233,7 +233,7 @@
       end
       if id == nil then
         if unique then
-          return nil
+          error(("All action IDs for bars of type '%s' are in use, cannot create any more buttons"):format(self.config.barType))
         end
         pool.nWraps = nWraps + 1
       end