Ignore:
Timestamp:
Oct 1, 2018 9:22:15 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:
b8745fa
Parents:
0d2629f
git-author:
Piotr Rozyczko <piotr.rozyczko@…> (10/01/18 09:19:42)
git-committer:
Piotr Rozyczko <piotr.rozyczko@…> (10/01/18 09:22:15)
Message:

Fixed freeze on theory curves - SASVIEW-1185

File:
1 edited

Legend:

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

    r63467b6 re2e5f3d  
    536536        self.cbgraph.setCurrentIndex(ind) 
    537537        self.cbgraph.setItemText(ind, current_name) 
     538 
     539    def add_data(self, data_list): 
     540        """ 
     541        Update the data manager with new items 
     542        """ 
     543        self.manager.add_data(data_list) 
    538544 
    539545    def updateGraphCount(self, graph_list): 
     
    12051211        self.model.endResetModel() 
    12061212 
     1213    def freezeDataToItem(self, data=None): 
     1214        """ 
     1215        Freeze given set of data to main model 
     1216        """ 
     1217        if data is None: 
     1218            return 
     1219        self.model.beginResetModel() 
     1220        new_item = GuiUtils.createModelItemWithPlot(data, data.name) 
     1221 
     1222        self.model.appendRow(new_item) 
     1223        self.model.endResetModel() 
     1224 
    12071225    def freezeSelectedItems(self): 
    12081226        """ 
Note: See TracChangeset for help on using the changeset viewer.