Changeset 2f55df6 in sasview for src/sas/qtgui/Plotting/Plotter2D.py


Ignore:
Timestamp:
Sep 27, 2018 6:13:13 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:
51b9c14
Parents:
b38871e
git-author:
Piotr Rozyczko <piotr.rozyczko@…> (09/27/18 06:11:38)
git-committer:
Piotr Rozyczko <piotr.rozyczko@…> (09/27/18 06:13:13)
Message:

Slicer Parameters should also close the corresponding subwindow on exit.
Also: fixed toFloat() conversion.
SASVIEW-1115

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Plotter2D.py

    r63467b6 r2f55df6  
    229229        def slicer_closed(): 
    230230            # Need to disconnect the signal!! 
    231             self.slicer_widget.close_signal.disconnect() 
     231            self.slicer_widget.closeWidgetSignal.disconnect() 
     232            self.manager.parent.workspace().removeSubWindow(self.slicer_subwindow) 
    232233            # reset slicer_widget on "Edit Slicer Parameters" window close 
    233234            self.slicer_widget = None 
     
    237238        self.slicer_widget = SlicerParameters(model=self.param_model, 
    238239                                              validate_method=self.slicer.validate) 
    239         self.slicer_widget.close_signal.connect(slicer_closed) 
     240        self.slicer_widget.closeWidgetSignal.connect(slicer_closed) 
    240241        # Add the plot to the workspace 
    241         self.manager.parent.workspace().addSubWindow(self.slicer_widget) 
     242        self.slicer_subwindow = self.manager.parent.workspace().addSubWindow(self.slicer_widget) 
    242243 
    243244        self.slicer_widget.show() 
Note: See TracChangeset for help on using the changeset viewer.