Commits

Marko Toplak committed 9aa4d6e

Fixed saving of selections.

Comments (0)

Files changed (1)

orangecontrib/bio/widgets/OWGenCloud.py

 
     def ConnectAndUpdate(self):
         self.Connect()
-        self.UpdateExperiments(reload=False)
+        if self.dbc:
+            self.projects = sorted(self.dbc.projects().items(), key=lambda x: x[1])
+            self.UpdateProjects()
+            self.ProjectChosen()
+            self.UpdateExperimentTypes()
 
     def Connect(self):
         self.error(1)
             self.error(1, "Wrong username or password.")
 
         self.UpdateProjects()
-        self.UpdateExperimentTypes()
-
-        if self.dbc:
-            self.projects = sorted(self.dbc.projects().items(), key=lambda x: x[1])
-            self.UpdateProjects()
-            self.ProjectChosen()
-            self.UpdateExperimentTypes()
-
+        self.UpdateExperimentTypes() #clear lists
 
     def Reload(self):
         self.UpdateExperiments(reload=True)
         self.UpdateResultsList(reload=reload)
 
         self.progressBarFinished()
-
+        
         if self.currentSelection:
             self.currentSelection.select(self.experimentsWidget.selectionModel())