Changeset 9c207f5 in sasview for src


Ignore:
Timestamp:
Nov 26, 2018 7:25:58 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
1b03c0a
Parents:
2e5081b
Message:

Fixed onSetAll behaviour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/ComplexConstraint.py

    r2e5081b r9c207f5  
    275275        """ 
    276276        # loop over parameters in constrained model 
    277         items1 = [param for param in self.params[0] if not self.tabs[0].paramHasConstraint(param)] 
    278         #items2 = [param for param in self.params[1] if not self.tabs[1].paramHasConstraint(i)] 
    279         items2 = self.params[1] 
     277        index1 = self.cbModel1.currentIndex() 
     278        index2 = self.cbModel2.currentIndex() 
     279        items1 = [param for param in self.params[index1] if not self.tabs[index1].paramHasConstraint(param)] 
     280        items2 = self.params[index2] 
    280281        for item in items1: 
    281282            if item not in items2: continue 
Note: See TracChangeset for help on using the changeset viewer.