[squeak-dev] The Inbox: Morphic-ct.1760.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Apr 29 13:16:34 UTC 2021


A new version of Morphic was added to project The Inbox:
http://source.squeak.org/inbox/Morphic-ct.1760.mcz

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

Name: Morphic-ct.1760
Author: ct
Time: 29 April 2021, 3:16:27.408422 pm
UUID: e0169b48-fe90-7f45-bcb5-5d4dcfb14aa3
Ancestors: Morphic-mt.1759

Make editors' #spawn feature more robust against missing models. A short scan of all references to the model variable reveals that this was the only method that could not handle nil models correctly.

=============== Diff against Morphic-mt.1759 ===============

Item was changed:
  ----- Method: TextEditor>>spawn (in category 'menu messages') -----
  spawn
  	"Create and schedule a message browser for the code of the model's 
  	selected message. Retain any edits that have not yet been accepted."
  	| code |
  	code := paragraph text string.
  	self cancel.
+ 	model
+ 		ifNotNil: [model spawn: code]
+ 		ifNil: [UIManager default edit: code].!
- 	model spawn: code.!



More information about the Squeak-dev mailing list