SettingsDialog.st
branchjv
changeset 17134 c4cce8b7a95d
parent 16646 a5f135955d71
parent 16971 e37f456e483b
child 17136 cb908d2ba02e
--- a/SettingsDialog.st	Sun Oct 09 22:55:02 2016 +0100
+++ b/SettingsDialog.st	Tue Oct 18 22:55:22 2016 +0100
@@ -67,7 +67,7 @@
     It is used (among others) in the launcher's and filebrowser's settings-dialogs.
 
     However, it is rather generic and can be setup for any application's setting dialog.
-    The actual contents (i.e. the arganization tree and tab contents) is provided
+    The actual contents (i.e. the organization tree and tab contents) is provided
     by a spec-array (the settingsList).
     You will find a default settings list here, but in theory, applications may provide
     their own one, or modify a copy of that list for specialized settings dialogs.
@@ -1687,7 +1687,7 @@
         "D121136 - Filename doesnot understand allBold"
         (Dialog 
             confirm:(resources 
-                        stringWithCRs:'Save your changed settings in the settings file?\(which is: "%1"\\If not saved, these changes only apply to your current session.'
+                        stringWithCRs:'Save your changed settings in the settings file?\(which is: "%1")\\If not saved, these changes only apply to your current session.'
                         with:self class currentSettingsFilename asString allBold))
         ifTrue:[
             self saveSettingsWithoutAskingForFile.
@@ -1708,7 +1708,10 @@
 createRootItem
     |rootItem lbl|
 
-    resources := AbstractLauncherApplication resources.
+    "/ this is stupidly wrong!!
+    "/ if the launcher thinks it needs this, it should set the resources
+    "/ (otherwise, reuse of resource dialog is difficult eg. in expecco)
+    "/ resources := AbstractLauncherApplication resources.
     rootItem := self class itemClass new.
     lbl := resources string:'Settings'.
     rootItem label:lbl "allBold".
@@ -1724,10 +1727,10 @@
 initialize
     |rootItem|
 
+    super initialize.
     rootItem := self createRootItem.
     self applicationList root:rootItem; showRoot:true "false".
     self selectedItem value:rootItem.
-    super initialize.
 
     "Modified: / 03-11-2007 / 14:22:18 / cg"
 !