Changeset bbcf9f0 in sasview for src/sas/qtgui/Perspectives


Ignore:
Timestamp:
Jan 9, 2019 2: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
Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 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 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    rd1ad101 rbbcf9f0  
    284284        # Data for chosen model 
    285285        self.model_data = None 
     286        self._previous_model_index = 0 
    286287 
    287288        # Which shell is being currently displayed? 
     
    20202021        React to changes in the smearing widget 
    20212022        """ 
     2023        # update display 
     2024        smearing, accuracy, smearing_min, smearing_max = self.smearing_widget.state() 
     2025        self.lblCurrentSmearing.setText(smearing) 
    20222026        self.calculateQGridForModel() 
    20232027 
Note: See TracChangeset for help on using the changeset viewer.