Changeset 376a939 in sasview for src/sas/qtgui


Ignore:
Timestamp:
Nov 28, 2018 8:41:37 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:
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.