changed: #buttonMultiPress:x:y: expecco_1_9_1_iX
authorClaus Gittinger <cg@exept.de>
Thu, 30 Jun 2011 21:15:12 +0200
changeset 4043 532a328a9e0e
parent 4042 c67a4227f0e3
child 4044 1ad77f8196e3
changed: #buttonMultiPress:x:y: common code for doubleClick !
SelectionInListModelView.st
--- a/SelectionInListModelView.st	Wed Jun 29 16:41:22 2011 +0200
+++ b/SelectionInListModelView.st	Thu Jun 30 21:15:12 2011 +0200
@@ -1335,17 +1335,23 @@
     enabled ifFalse:[^ self].
 
     (button == 1) ifTrue:[
-        doubleClickActionBlock notNil ifTrue:[
-            (     (lnNr := self yVisibleToLineNr:y)   notNil
-             and:[(item := self at:lnNr ifAbsent:nil) notNil]
-            ) ifTrue:[
-                doubleClickActionBlock valueWithOptionalArgument:lnNr and:self.
+        (     (lnNr := self yVisibleToLineNr:y)   notNil
+         and:[(item := self at:lnNr ifAbsent:nil) notNil]
+        ) ifTrue:[
+            self selectedIndex == lnNr ifFalse:[
+                self breakPoint:#ca
             ].
+            self doubleClicked.
+"/            doubleClickActionBlock notNil ifTrue:[
+"/                doubleClickActionBlock valueWithOptionalArgument:lnNr and:self.
+"/            ].
         ].
         ^ self.
     ].
 
     super buttonMultiPress:button x:x y:y
+
+    "Modified: / 30-06-2011 / 20:04:28 / cg"
 !
 
 buttonPress:button x:x y:y
@@ -2656,10 +2662,6 @@
 
 !SelectionInListModelView class methodsFor:'documentation'!
 
-version
-    ^ '$Header: /cvs/stx/stx/libwidg2/SelectionInListModelView.st,v 1.154 2010-11-03 00:35:57 cg Exp $'
-!
-
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg2/SelectionInListModelView.st,v 1.154 2010-11-03 00:35:57 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/SelectionInListModelView.st,v 1.155 2011-06-30 19:15:12 cg Exp $'
 ! !