Changeset a944beb in sasview for src/sas/qtgui/MainWindow


Ignore:
Timestamp:
Dec 5, 2018 7:46:45 AM (6 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:
bf7f025
Parents:
3801429
Message:

Restore 2D data chart as well. SASVIEW-1221

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    r99f8760 ra944beb  
    943943 
    944944        # Make sure main data for 2D is always displayed 
    945         if main_data is not None and not self.isPlotShown(main_data): 
     945        if main_data is not None: 
    946946            if isinstance(main_data, Data2D): 
    947                 self.plotData([(plot_item, main_data)]) 
     947                if self.isPlotShown(main_data): 
     948                    self.active_plots[main_data.name].showNormal() 
     949                else: 
     950                    self.plotData([(plot_item, main_data)]) 
    948951 
    949952        # Check if this is merely a plot update 
     
    964967                new_plots.append((plot_item, main_data)) 
    965968            new_plots.append((plot_item, plot_to_show)) 
    966  
    967969        if new_plots: 
    968970            self.plotData(new_plots) 
Note: See TracChangeset for help on using the changeset viewer.