SimpleView.st
branchjv
changeset 7332 ff1fb34dbf49
parent 7312 e69b73023aea
child 7338 aa3b1dc01cc0
--- a/SimpleView.st	Tue May 03 10:08:46 2016 +0100
+++ b/SimpleView.st	Wed May 04 21:33:11 2016 +0100
@@ -10034,7 +10034,13 @@
 !
 
 recreate
-    "recreate (i.e. tell X about me) after a snapin or a migration"
+    "Recreate (i.e. tell the windowing system about me) after a snapin or a migration"
+
+    "/ Issue #86: Do not recreate a view which has been
+    "/ destroyed (by mean of sending it #destroy) but for
+    "/ some other reason retained. 
+    "/ See https://swing.fit.cvut.cz/projects/stx-jv
+    self isBeingDestroyed ifTrue:[ ^self ].
 
     self drawableId isNil ifTrue:[
         super recreate.