changed: #postOpenWith: (pre-select settings if there is only one child of the root)
authorvrany
Mon, 03 Oct 2011 17:30:14 +0200
changeset 10742 c6c9b272ac55
parent 10741 e4645cbb0958
child 10743 d298a1dff652
changed: #postOpenWith: (pre-select settings if there is only one child of the root)
SettingsDialog.st
--- a/SettingsDialog.st	Sun Oct 02 21:52:17 2011 +0200
+++ b/SettingsDialog.st	Mon Oct 03 17:30:14 2011 +0200
@@ -1331,8 +1331,12 @@
 postOpenWith:aBuilder
     self rootItem expand.
     super postOpenWith:aBuilder.
+    self rootItem children size == 1 ifTrue:[
+        self selectedItem value: self rootItem children anyOne.
+    ]
 
     "Modified: / 03-11-2007 / 14:23:25 / cg"
+    "Modified: / 03-10-2011 / 16:27:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !SettingsDialog methodsFor:'menu actions'!
@@ -1476,11 +1480,11 @@
 !SettingsDialog class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/SettingsDialog.st,v 1.94 2011-07-26 09:50:44 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/SettingsDialog.st,v 1.95 2011-10-03 15:30:14 vrany Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libtool/SettingsDialog.st,v 1.94 2011-07-26 09:50:44 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/SettingsDialog.st,v 1.95 2011-10-03 15:30:14 vrany Exp $'
 !
 
 version_SVN