class: DialogBox
authorClaus Gittinger <cg@exept.de>
Fri, 08 Feb 2013 21:30:32 +0100
changeset 4502 86d0cd1a08ab
parent 4501 3f8f66c8d1f2
child 4503 08d33a9017e2
class: DialogBox changed: #showAndThenDestroyBox: make sure to destroy box in case of a process termination (fixes leftover empty dialog boxes in expecco-dialogboxraiser)
DialogBox.st
--- a/DialogBox.st	Sat Feb 02 01:23:18 2013 +0100
+++ b/DialogBox.st	Fri Feb 08 21:30:32 2013 +0100
@@ -5810,8 +5810,11 @@
 !DialogBox class methodsFor:'private'!
 
 showAndThenDestroyBox:aBox
-    self showBox:aBox.
-    aBox destroy
+    [
+        self showBox:aBox.
+    ] ensure:[
+        aBox destroy
+    ]
 !
 
 showBox:aBox
@@ -9771,11 +9774,11 @@
 !DialogBox class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/DialogBox.st,v 1.330 2013-01-17 10:49:55 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/DialogBox.st,v 1.331 2013-02-08 20:30:32 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg/DialogBox.st,v 1.330 2013-01-17 10:49:55 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/DialogBox.st,v 1.331 2013-02-08 20:30:32 cg Exp $'
 ! !