The Inbox: Morphic-ct.1760.mcz

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

The Inbox: Morphic-ct.1760.mcz

commits-2
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.!