[squeak-dev] The Trunk: Morphic-ct.1624.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Dec 6 17:58:07 UTC 2021


Christoph Thiede uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.1624.mcz

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

Name: Morphic-ct.1624
Author: ct
Time: 5 February 2020, 10:01:38.455675 am
UUID: 232459ff-c526-a546-b734-e6b8c6366657
Ancestors: Morphic-cmm.1618

Fixes a bug when undoing dismissal of a SelectionMorph. In the past, this only restored the SelectionMorph itself but not its items.

Please note this solution is not optimal because it abuses #intoWorld:. However, I don't see any unwanted side effects at the moment ... Maybe we would like to introduce an extra hook for this in #reintroduceIntoWorld:?

=============== Diff against Morphic-cmm.1618 ===============

Item was added:
+ ----- Method: SelectionMorph>>intoWorld: (in category 'initialization') -----
+ intoWorld: aWorld
+ 
+ 	selectedItems ifNotEmpty: [
+ 		"Restore selected items for #reintroduceIntoWorld:"
+ 		selectedItems do: [:morph |
+ 			aWorld reintroduceIntoWorld: morph].
+ 		^ self delete].
+ 	super intoWorld: aWorld.!



More information about the Squeak-dev mailing list