[squeak-dev] The Trunk: PreferenceBrowser-mt.101.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Feb 17 08:43:58 UTC 2020


Marcel Taeumel uploaded a new version of PreferenceBrowser to project The Trunk:
http://source.squeak.org/trunk/PreferenceBrowser-mt.101.mcz

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

Name: PreferenceBrowser-mt.101
Author: mt
Time: 17 February 2020, 9:43:57.633291 am
UUID: 3f4a443f-0440-c14e-a7ef-475e81641bc5
Ancestors: PreferenceBrowser-dtl.100

Fixes re-use of preference and service browsers.

Thanks to Jakob (jr) and Christoph (ct) for the hint!

=============== Diff against PreferenceBrowser-dtl.100 ===============

Item was changed:
  ----- Method: PreferenceBrowser>>representsSameBrowseeAs: (in category 'user interface') -----
  representsSameBrowseeAs: anotherModel
+ 	"If an existing Preference browser is on-screen, use it. Compare preferences with #== because those are typically persistent (or long living) database objects in the image."
+ 	
+ 	^ self class = anotherModel class
+ 		and: [self preferences == anotherModel preferences]!
- 	"If an existing Preference browser is on-screen, use it."
- 	^ self class = anotherModel class!



More information about the Squeak-dev mailing list