@@ -4338,15 +4338,16 @@ def StartProject(self):
43384338 if GSASIIpath .GetConfigValue ('debug' ): print ('StartProject 2.1' )
43394339 if seqId :
43404340 self .EnablePlot = True
4341- SelectDataTreeItem (self ,seqId )
4341+ #SelectDataTreeItem(self,seqId)
4342+ wx .CallAfter (SelectDataTreeItem ,self ,Id )
43424343 if GSASIIpath .GetConfigValue ('debug' ): print ('StartProject 2.2a' )
43434344 if sys .platform == "darwin" :
43444345 self .GPXtree .SelectItem (seqId ) # needed on OSX or item is not selected in tree; perhaps not needed elsewhere
43454346 elif Id :
43464347 self .EnablePlot = True
43474348 self .GPXtree .Expand (Id )
4348- SelectDataTreeItem (self ,Id )
4349- # wx.CallAfter(SelectDataTreeItem,self,Id)
4349+ # SelectDataTreeItem(self,Id)
4350+ wx .CallAfter (SelectDataTreeItem ,self ,Id )
43504351 if GSASIIpath .GetConfigValue ('debug' ): print ('StartProject 2.2b' )
43514352 if sys .platform == "darwin" :
43524353 self .GPXtree .SelectItem (Id ) # OSX, as before
@@ -4355,7 +4356,8 @@ def StartProject(self):
43554356 # open 1st phase
43564357 Id , unused = self .GPXtree .GetFirstChild (phaseId )
43574358 if GSASIIpath .GetConfigValue ('debug' ): print ('StartProject 2.3' )
4358- SelectDataTreeItem (self ,Id )
4359+ #SelectDataTreeItem(self,Id)
4360+ wx .CallAfter (SelectDataTreeItem ,self ,Id )
43594361 if GSASIIpath .GetConfigValue ('debug' ): print ('StartProject 2.4' )
43604362 if sys .platform == "darwin" :
43614363 self .GPXtree .SelectItem (Id ) # OSX, as before
0 commit comments