Changeset b9ab979 in sasview for src/sas/qtgui/MainWindow/DataExplorer.py
- Timestamp:
- Nov 6, 2018 5:17:08 AM (6 years ago)
- 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:
- 1942f63
- Parents:
- a0ad146
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r722b7d6 rb9ab979 99 99 self.communicator.extMaskEditorSignal.connect(self.extShowEditDataMask) 100 100 self.communicator.changeDataExplorerTabSignal.connect(self.changeTabs) 101 self.communicator.forcePlotDisplaySignal.connect(self.displayData) 101 102 102 103 self.cbgraph.editTextChanged.connect(self.enableGraphCombo) … … 636 637 # Try the current item 637 638 main_data = GuiUtils.dataFromItem(plot_item) 639 # 1D dependent plots of 2D sets - special treatment 640 if isinstance(main_data, Data2D) and isinstance(plot_to_show, Data1D): 641 main_data = None 638 642 639 643 # Make sure main data for 2D is always displayed 640 if main_data and not self.isPlotShown(main_data):644 if main_data is not None and not self.isPlotShown(main_data): 641 645 if isinstance(main_data, Data2D): 642 646 self.plotData([(plot_item, main_data)]) … … 656 660 # Plots with main data points on the same chart 657 661 # Get the main data plot 658 if main_data and not self.isPlotShown(main_data):662 if main_data is not None and not self.isPlotShown(main_data): 659 663 new_plots.append((plot_item, main_data)) 660 664 new_plots.append((plot_item, plot_to_show))
Note: See TracChangeset
for help on using the changeset viewer.