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

Close all open widgets when setting a new scheme.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/application/canvasmain.py

    r11375 r11384  
    914914 
    915915    def set_new_scheme(self, new_scheme): 
    916         """Set new_scheme as the current shown scheme. 
     916        """ 
     917        Set new_scheme as the current shown scheme. The old scheme 
     918        will be deleted. 
     919 
    917920        """ 
    918921        scheme_doc = self.current_document() 
     
    926929 
    927930        old_scheme.save_widget_settings() 
     931        old_scheme.close_all_open_widgets() 
     932 
    928933        old_scheme.deleteLater() 
    929934 
     
    14471452        scheme = document.scheme() 
    14481453        scheme.save_widget_settings() 
     1454        scheme.close_all_open_widgets() 
    14491455 
    14501456        # Set an empty scheme to clear the document 
Note: See TracChangeset for help on using the changeset viewer.