NewLauncher.st
branchjv
changeset 15749 3215bd6511b0
parent 15720 cbf8e19959fc
parent 15748 3a1a2881b3b5
child 15843 1c2cf683dbd2
--- a/NewLauncher.st	Fri Jul 17 06:53:54 2015 +0200
+++ b/NewLauncher.st	Sat Jul 18 06:37:22 2015 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1997-1998 by eXept Software AG
 	      All Rights Reserved
@@ -3512,7 +3510,7 @@
     monticelloLabel := ((resources string:'[Monticello Packages]') asText allItalic colorizeAllWith:Color grey).
     monticelloRoot type:#monticelloRoot.
 
-    MCRepositoryGroup isNil ifTrue:[
+    (MCRepositoryGroup isNil or:[MCRepositoryGroup isLoaded not]) ifTrue:[
         monticelloRoot icon:greyFolderIcon.
         monticelloRoot label:monticelloLabel, (' (Monticello Support not Loaded)' asText colorizeAllWith:Color grey).
     ] ifFalse:[
@@ -5134,20 +5132,22 @@
     <resource: #programMenu >
 
     ^ [
-	|m anyItem hosts|
-
-	m := Menu new.
-
-	hosts := SmallTeam hostsWithChanges asSortedCollection.
-	hosts do:[:eachHost |
-	    |item|
-
-	    item := MenuItem label:eachHost.
-	    item itemValue:#'startBrowserOnChangesOnSmallTeamHost:' argument:eachHost.
-	    m addItem:item.
-	    anyItem := true.
-	].
-	hosts isEmptyOrNil ifTrue:[ nil ] ifFalse:[ m ]
+        |m anyItem hosts|
+
+        m := Menu new.
+
+        SmallTeam notNil ifTrue:[
+            hosts := SmallTeam hostsWithChanges asSortedCollection.
+            hosts do:[:eachHost |
+                |item|
+
+                item := MenuItem label:eachHost.
+                item itemValue:#'startBrowserOnChangesOnSmallTeamHost:' argument:eachHost.
+                m addItem:item.
+                anyItem := true.
+            ].
+        ].
+        hosts isEmptyOrNil ifTrue:[ nil ] ifFalse:[ m ]
     ].
 
     "Created: / 12-11-2006 / 16:06:06 / cg"