Ignore:
Timestamp:
Jan 9, 2019 4:11:30 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
33c0561
Parents:
d1ad101
Message:
  1. Disconnect signals before reconnecting them. SASVIEW-1238
  2. Update Smearing label on the main fitting tab
File:
1 edited

Legend:

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

    r2e5081b rbbcf9f0  
    214214        tab_object = ObjectLibrary.getObject(tab) 
    215215 
    216         # Disconnect all local slots 
    217         #tab_object.disconnect() 
     216        # Disconnect all local slots, if connected 
     217        if tab_object.receivers(tab_object.newModelSignal) > 0: 
     218            tab_object.newModelSignal.disconnect() 
     219        if tab_object.receivers(tab_object.constraintAddedSignal) > 0: 
     220            tab_object.constraintAddedSignal.disconnect() 
    218221 
    219222        # Reconnect tab signals to local slots 
Note: See TracChangeset for help on using the changeset viewer.