Changeset 376a939 in sasview


Ignore:
Timestamp:
Nov 28, 2018 8:41:37 AM (2 weeks ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Invariant, ESS_GUI_batch_fitting, ESS_GUI_ordering
Children:
8aa3c4d, 5d75a181
Parents:
ce67f35
Message:

Fixed deserialization of batch pages.

File:
1 edited

Legend:

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

    rba8046c r376a939  
    387387            for i in range(model.rowCount()): 
    388388                properties = {} 
    389                 item = model.item(i) 
    390                 data = GuiUtils.dataFromItem(item) 
     389                data = GuiUtils.dataFromItem(model.item(i)) 
    391390                if data is None: continue 
    392391                if data.id != id: continue 
    393392                # We found the item - return it 
     393                item = model.item(i) 
    394394                break 
    395395        return item 
     
    548548                new_data = self.manager.create_gui_data(value[0], new_data.filename) 
    549549            assert isinstance(new_data, (Data1D, Data2D)) 
     550            # make sure the ID is retained 
     551            new_data.id = value[0].id 
     552            new_data.group_id = value[0].group_id 
    550553            properties = value[1] 
    551554            is_checked = properties['checked'] 
Note: See TracChangeset for help on using the changeset viewer.