Changeset 9324:92a2edfdb447 in orange


Ignore:
Timestamp:
12/07/11 19:22:14 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
481b0b57234fbcee2c2d60c20be627f90c3df1aa
Message:

Invalidate stored hints on 'Reset selected'.
Commit data after 'Reset selected/all'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Data/OWEditDomain.py

    r9323 r9324  
    579579            self.domain_model[:] = self.all_vars 
    580580            self.select_variable(self.selected_index) 
     581            self.commit_if() 
    581582             
    582583    def reset_selected(self): 
     
    587588        if self.data is not None: 
    588589            var = self.all_vars[self.selected_index] 
     590            desc = variable_description(var) 
     591            if desc in self.domain_change_hints: 
     592                del self.domain_change_hints[desc] 
     593             
     594            # To invalidate stored hints 
     595            self.closeContext("") 
     596            self.openContext("", self.data) 
     597             
    589598            self.domain_model[self.selected_index] = var 
    590599            self.editor_stack.currentWidget().set_data(var) 
     600            self.commit_if() 
    591601             
    592602    def commit_if(self): 
Note: See TracChangeset for help on using the changeset viewer.