AbstractSettingsApplication.st
changeset 16923 20656147dcba
parent 16902 cc814affa81d
child 16924 b1a7600d559b
--- a/AbstractSettingsApplication.st	Tue Oct 11 15:28:52 2016 +0200
+++ b/AbstractSettingsApplication.st	Tue Oct 11 15:51:03 2016 +0200
@@ -17436,17 +17436,17 @@
     self previewVisibleHolder value ifTrue:[
         self builder notNil ifTrue:[
             labelView := self componentAt:#PreviewLabel.
-            labelView label:'Sorry - no preview available'.
-
             imgView := (self componentAt:#Preview).
-            imgView image:nil.
 
             previewFile notEmptyOrNil ifTrue:[
                 previewImage := Image fromFile:'../../doc/online/pictures' asFilename / previewFile.
-                previewImage notNil ifTrue:[
-                    labelView label:'Preview'.
-                    imgView adjust:#fitBig; image:previewImage.
-                ]
+            ].    
+            previewImage notNil ifTrue:[
+                labelView label:'Preview'.
+                imgView adjust:#fitBig; image:previewImage.
+            ] ifFalse:[
+                labelView label:'Sorry - no preview available'.
+                imgView image:nil.
             ].
             labelView forceResizeHorizontally.
         ]
@@ -17493,6 +17493,12 @@
 
 !AbstractSettingsApplication::StyleSettingsAppl methodsFor:'help'!
 
+editorHelpRelativeWikiURL
+    "the relative URL of the dialog-description in the Wiki"
+
+    ^ 'Settings_ViewStyleSettings'
+!
+
 helpFilename
     ^ 'Launcher/styleSettings.html'
 ! !