The Trunk: Morphic-mt.905.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.905.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.905.mcz

==================== Summary ====================

Name: Morphic-mt.905
Author: mt
Time: 19 April 2015, 1:27:33.054 pm
UUID: 335d9a4f-34c4-e447-a9d1-eb2a5b7b308e
Ancestors: Morphic-mt.904

Fixed a bug regarding list filtering and an updated selection that did not match the current filter.

=============== Diff against Morphic-mt.904 ===============

Item was changed:
  ----- Method: PluggableListMorph>>update: (in category 'updating') -----
  update: aSymbol
  "Refer to the comment in View|update:."
  aSymbol == getListSelector ifTrue:
  [ self updateList.
  ^ self ].
  aSymbol == getIndexSelector ifTrue:
  [ | uiIndex modelIndex |
  uiIndex := self uiIndexFor: (modelIndex := self getCurrentSelectionIndex).
  self selectionIndex:
  (uiIndex = 0
  ifTrue:
  [ "The filter is preventing us from selecting the item we want - remove it."
+ (modelIndex > 0 and: [list notNil and: [list size > 0]]) ifTrue: [ self removeFilter; updateList ].
- (modelIndex > 0 and: [list notNil and: [list size > 0]]) ifTrue: [ self removeFilter ].
  modelIndex ]
  ifFalse: [ uiIndex ]).
  ^ self ]!