Changeset 11540:7a1e9c31d414 in orange


Ignore:
Timestamp:
05/22/13 19:07:22 (11 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Close the widget before saving it's settings.

File:
1 edited

Legend:

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

    r11487 r11540  
    8282        del self.widget_for_node[node] 
    8383        del self.node_for_widget[widget] 
     84 
     85        widget.close() 
    8486 
    8587        # Save settings to user global settings. 
     
    193195            # Notify the widget instances. 
    194196            for widget in self.widget_for_node.values(): 
     197                widget.close() 
     198 
    195199                if not widget._settingsFromSchema: 
    196200                    # First save global settings if necessary. 
    197201                    widget.saveSettings() 
    198202 
    199                 widget.close() 
    200203                widget.onDeleteWidget() 
    201204 
Note: See TracChangeset for help on using the changeset viewer.