#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Mon, 17 Oct 2016 14:23:08 +0200
changeset 16971 e37f456e483b
parent 16970 472000f80562
child 16972 8cbd6ed75e2e
#BUGFIX by cg class: SettingsDialog changed: #closeRequest #createRootItem #initialize
SettingsDialog.st
--- a/SettingsDialog.st	Mon Oct 17 00:20:34 2016 +0200
+++ b/SettingsDialog.st	Mon Oct 17 14:23:08 2016 +0200
@@ -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"
 !