Changeset 8888:0b2da389218d in orange


Ignore:
Timestamp:
09/02/11 11:23:04 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
743eea842941ed8112eaf3bc871805c69a31b43c
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngCanvas.pyw

    r8887 r8888  
    284284                if defaultTabs[i] in defaultTabs[0:i]: 
    285285                    del defaultTabs[i] 
    286             self.settings["WidgetTabs"] = [(name, Qt.Checked) for name in defaultTabs] + [("Prototypes", Qt.Unchecked), ("Visualize Qt", Qt.Unchecked)] 
     286            self.settings["WidgetTabs"] = [(name, Qt.Checked) for name in defaultTabs] + [("Visualize Qt", Qt.Unchecked), ("Prototypes", Qt.Unchecked)] 
    287287             
    288288        widgetTabList = self.settings["WidgetTabs"] 
     
    293293         
    294294        # Keep Prototypes as last in list 
    295         if widgetTabList[-1][0] == "Prototypes": 
     295        if widgetTabList[-1][0] == "Prototypes" and widgetTabList[-2][0] == "Visualize Qt": 
     296            widgetTabList = widgetTabList[: -2] + extraTabs + widgetTabList[-2 :] 
     297        elif widgetTabList[-1][0] == "Prototypes": 
    296298            widgetTabList = widgetTabList[: -1] + extraTabs + widgetTabList[-1 :] 
    297299        else: 
Note: See TracChangeset for help on using the changeset viewer.