Ignore:
File:
1 edited

Legend:

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

    r2e5081b r33c0561  
    112112        self.parent = parent 
    113113        self.setupUi(self) 
     114 
    114115        self.currentType = "FitPage" 
    115116        # Page id for fitting 
     
    214215        tab_object = ObjectLibrary.getObject(tab) 
    215216 
    216         # Disconnect all local slots 
    217         #tab_object.disconnect() 
     217        # Disconnect all local slots, if connected 
     218        if tab_object.receivers(tab_object.newModelSignal) > 0: 
     219            tab_object.newModelSignal.disconnect() 
     220        if tab_object.receivers(tab_object.constraintAddedSignal) > 0: 
     221            tab_object.constraintAddedSignal.disconnect() 
    218222 
    219223        # Reconnect tab signals to local slots 
Note: See TracChangeset for help on using the changeset viewer.