care for widget beeing destroyed during drop-action
authorClaus Gittinger <cg@exept.de>
Mon, 30 Jan 2006 09:29:46 +0100
changeset 2093 d29474de6ab5
parent 2092 8c85812b46c4
child 2094 bbddf66ad97c
care for widget beeing destroyed during drop-action (dont re-install focus)
DragAndDropManager.st
--- a/DragAndDropManager.st	Fri Jan 27 11:32:12 2006 +0100
+++ b/DragAndDropManager.st	Mon Jan 30 09:29:46 2006 +0100
@@ -1274,7 +1274,7 @@
 "/            dropContext targetWidget requestFocus    
 "/        ].
 "/    ].
-    targetWidget notNil ifTrue:[
+    (targetWidget notNil and:[targetWidget shown]) ifTrue:[
         targetWidget topView setForegroundWindow; activate.
         targetWidget takeFocus.    
     ].
@@ -1569,7 +1569,7 @@
 !DragAndDropManager class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/DragAndDropManager.st,v 1.68 2006-01-24 16:52:17 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/DragAndDropManager.st,v 1.69 2006-01-30 08:29:46 cg Exp $'
 ! !
 
 DragAndDropManager initialize!