Frank Shearar uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-fbs.582.mcz==================== Summary ====================
Name: Monticello-fbs.582
Author: fbs
Time: 22 January 2014, 9:39:31.305 am
UUID: 312e1c16-360f-ec45-bfdb-0595beedb993
Ancestors: Monticello-fbs.581
Protect against a yellow-click when no item in the list is selected.
=============== Diff against Monticello-fbs.581 ===============
Item was changed:
----- Method: MCVersionHistoryBrowser>>getMenu: (in category 'morphic ui') -----
getMenu: aMenu
| menuSpecs |
+ self selection < 1 ifTrue: [^ aMenu]. "Nothing selected = nothing to do"
+ menuSpecs := (self selectedInfo ancestors collect: [:parent |
- menuSpecs := (self selectedInfo ancestors collect: [:parent |
{'view changes from ', parent name . #viewChanges: . parent}]),
#(('spawn history' spawnHistory)
('search history' searchHistory)).
+ self selection > 1 ifTrue: [menuSpecs := {{'view changes to ', ancestry name . #viewChanges}}, menuSpecs].
- self selection > 1 ifTrue: [
- menuSpecs := {{'view changes to ', ancestry name . #viewChanges}}, menuSpecs].
-
self fillMenu: aMenu fromSpecs: menuSpecs.
^ aMenu!