SmallSense__AbstractSearchDialog.st
changeset 347 d76d7d8d17a3
parent 346 88c1d211f9be
child 348 81ad6b88370c
--- a/SmallSense__AbstractSearchDialog.st	Fri Jun 20 13:56:46 2014 +0100
+++ b/SmallSense__AbstractSearchDialog.st	Fri Jun 20 14:25:09 2014 +0100
@@ -369,7 +369,11 @@
         completion notNil ifTrue:[
             field contents: completion first.
             completion second size == 1 ifTrue:[
-                self matchingObjectsSelection: completion second anElement
+                matchingObjectsMultiselect ifTrue:[
+                    self matchingObjectsSelection: completion second asArray
+                ] ifFalse:[ 
+                    self matchingObjectsSelection: completion second anElement.
+                ].
             ].
         ] ifFalse:[
             matchingObjectsView flash.
@@ -377,7 +381,7 @@
     ]
 
     "Created: / 28-04-2014 / 22:30:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 02-05-2014 / 12:27:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 20-06-2014 / 14:12:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 matchPatternHolder
@@ -562,11 +566,15 @@
         children:matchingPOs;
         expand.
     matchingPOs size == 1 ifTrue:[
-        self matchingObjectsSelection: matchingPOs anElement
+        matchingObjectsMultiselect ifTrue:[
+            self matchingObjectsSelection: matchingPOs
+        ] ifFalse:[
+            self matchingObjectsSelection: matchingPOs anElement
+        ]
     ].
 
     "Created: / 30-04-2014 / 09:53:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 02-05-2014 / 12:27:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 20-06-2014 / 14:14:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 updateMatchingObjectsIgnorePattern