Changeset 11486:d25adb4ed735 in orange


Ignore:
Timestamp:
05/06/13 10:30:06 (12 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Don't save the widget settings to the global settings file if loaded from a scheme file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/scheme/widgetsscheme.py

    r11470 r11486  
    8484 
    8585        # Save settings to user global settings. 
    86         widget.saveSettings() 
     86        if not widget._settingsFromSchema: 
     87            widget.saveSettings() 
    8788 
    8889        # Notify the widget it will be deleted. 
     
    165166        for node in self.nodes: 
    166167            widget = self.widget_for_node[node] 
    167             widget.saveSettings() 
     168            if not widget._settingsFromSchema: 
     169                widget.saveSettings() 
    168170 
    169171    def sync_node_properties(self): 
Note: See TracChangeset for help on using the changeset viewer.