Changeset 9f4eaeb in sasview for src/sas/qtgui/MainWindow


Ignore:
Timestamp:
Sep 17, 2018 7:01:03 AM (6 years ago)
Author:
Laura Forster <Awork@…>
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:
3ae70f9, 1738173
Parents:
aa88b76
Message:

Error Handling for crashing when 'append to' is selected

sometimes a model can appear in datafiles, and if no graph is already created, selecting append to can crash sasview
r Please enter the commit message for your changes. Lines starting

File:
1 edited

Legend:

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

    r855e7ad r9f4eaeb  
    701701        # old plot data 
    702702        plot_id = str(self.cbgraph.currentText()) 
    703  
    704         assert plot_id in PlotHelper.currentPlots(), "No such plot: %s"%(plot_id) 
     703        try: 
     704            assert plot_id in PlotHelper.currentPlots(), "No such plot: %s"%(plot_id) 
     705        except: 
     706            return 
    705707 
    706708        old_plot = PlotHelper.plotById(plot_id) 
Note: See TracChangeset for help on using the changeset viewer.