SimpleDialog.st
changeset 4444 e9af6984f470
parent 4329 2ad714b6092f
child 4453 d6a8138cfa26
--- a/SimpleDialog.st	Fri Feb 21 12:20:19 2020 +0100
+++ b/SimpleDialog.st	Fri Feb 21 12:21:06 2020 +0100
@@ -387,6 +387,15 @@
     self preOpen
 !
 
+openDialogSpec:aSpec withBindings:bindings
+    "open myself - return true if accepted"
+
+    "/ Notice: redefined so that I open myself, instead of creating a new dialog
+    "/ (which the inherited method would do)
+
+    ^ self openFor:(masterApplication ? self) spec:aSpec withBindings:bindings
+!
+
 openFor:anApplication interface:aSelector
     "open the dialog for some appModel from a given spec;
      Return true if accepted, false if canceled"