The Inbox: Tools-fbs.345.mcz

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

The Inbox: Tools-fbs.345.mcz

commits-2
A new version of Tools was added to project The Inbox:
http://source.squeak.org/inbox/Tools-fbs.345.mcz

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

Name: Tools-fbs.345
Author: fbs
Time: 26 April 2011, 8:44:19.26 am
UUID: 52e2c842-2c27-0247-8b93-05056b5ab133
Ancestors: Tools-fbs.344

Levente Uzonyi found that deleting the last message in a MessageSet raised an error. This fixes the error by checking the list of messages: if there are no messages in the Browser (or subclass) instance, then explicitly select "no method selected".

=============== Diff against Tools-fbs.344 ===============

Item was changed:
  ----- Method: Browser>>reformulateList (in category 'message list') -----
  reformulateList
  "If the receiver has a way of reformulating its message list, here is a chance for it to do so"
  super reformulateList.
  (self messageList includes: self selectedMessageName)
+ ifFalse: [ self messageList
+ ifEmpty: [ self selectMessageNamed: nil ]
+ ifNotEmpty: [ self selectMessageNamed: self lastMessageName ]].!
- ifFalse: [ self selectMessageNamed: self lastMessageName ].!