diff mde/gui/exception.d @ 133:9fd705793568

Fixed menu popup bug, improved recursion detection. Menu popups can now determine whether or not they are sub-menus. Recursion detection can now also check content (if not the same, there's not a risk of infinite recursion).
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 23 Jan 2009 16:05:05 +0000
parents fe061009029d
children
line wrap: on
line diff
--- a/mde/gui/exception.d	Fri Jan 23 14:59:05 2009 +0000
+++ b/mde/gui/exception.d	Fri Jan 23 16:05:05 2009 +0000
@@ -40,6 +40,14 @@
     }
 }
 
+/// Thrown when a widget is (potentially) being recursed infinitely.
+class WidgetRecursionException : GuiException
+{
+    this (char[] id) {	// Pass id of widget being recursed
+        super ("Infinite recursion of "~id);
+    }
+}
+
 class ContentException : GuiException
 {
     char[] getSymbol () {