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


Ignore:
Timestamp:
Aug 8, 2018 9:31:28 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
cde0611
Parents:
03e04a4
Message:

Modified use of plot id to check existing plots.
Fixed padding for main param table
Shuffled initialization calls to minimize model updates.

File:
1 edited

Legend:

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

    rfce6c55 rebfe223  
    496496        # Now query the model item for available plots 
    497497        plots = GuiUtils.plotsFromFilename(filename, model) 
     498        ids = [list(self.active_plots.values())[id].data.id for id in range(len(self.active_plots))] 
    498499 
    499500        new_plots = [] 
    500501        for item, plot in plots.items(): 
    501502            plot_id = plot.id 
    502             if plot_id in list(self.active_plots.keys()): 
     503            if plot_id in ids: 
    503504                self.active_plots[plot_id].replacePlot(plot_id, plot) 
    504505            else: 
Note: See TracChangeset for help on using the changeset viewer.