Commits

Aleš Erjavec  committed 7a1e9c3

Close the widget before saving it's settings.

  • Participants
  • Parent commits 2723d9b

Comments (0)

Files changed (1)

File Orange/OrangeCanvas/scheme/widgetsscheme.py

         del self.widget_for_node[node]
         del self.node_for_widget[widget]
 
+        widget.close()
+
         # Save settings to user global settings.
         if not widget._settingsFromSchema:
             widget.saveSettings()
 
             # Notify the widget instances.
             for widget in self.widget_for_node.values():
+                widget.close()
+
                 if not widget._settingsFromSchema:
                     # First save global settings if necessary.
                     widget.saveSettings()
 
-                widget.close()
                 widget.onDeleteWidget()
 
             event.accept()