Changeset 63467b6 in sasview for src/sas/qtgui/Plotting/Plotter2D.py


Ignore:
Timestamp:
Sep 27, 2018 4:20:24 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:
4f8c17f
Parents:
dce68f6
Message:

Improved handling of 2d plot children. Refactored model tree search.

File:
1 edited

Legend:

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

    rdce68f6 r63467b6  
    284284        new_plot.id = "Circ avg " + self.data.name 
    285285        new_plot.is_data = True 
    286         GuiUtils.updateModelItemWithPlot(self._item, new_plot, new_plot.id) 
     286        if self._item.parent() is not None: 
     287            item = self._item.parent() 
     288        GuiUtils.updateModelItemWithPlot(item, new_plot, new_plot.id) 
    287289 
    288290        self.manager.communicator.plotUpdateSignal.emit([new_plot]) 
Note: See TracChangeset for help on using the changeset viewer.