Changeset d6e38661 in sasview for src/sas/qtgui/MainWindow
- Timestamp:
- Apr 5, 2018 8:32:38 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- ded5e77, 01ef3f7
- Parents:
- bb57068
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r8ac3551 rd6e38661 1133 1133 # Check if there are any other items for this tab 1134 1134 # If so, delete them 1135 # TODO: fix this to resemble GuiUtils.updateModelItemWithPlot 1136 # 1137 ##self.model.beginResetModel() 1138 ##current_tab_name = model_item.text()[:2] 1139 ##for current_index in range(self.theory_model.rowCount()): 1135 current_tab_name = model_item.text() 1136 for current_index in range(self.theory_model.rowCount()): 1140 1137 #if current_tab_name in self.theory_model.item(current_index).text(): 1141 # return 1142 ## self.theory_model.removeRow(current_index) 1143 ## break 1144 1145 ### Reset the view 1146 ##self.model.endResetModel() 1147 1148 # Reset the view 1138 if current_tab_name == self.theory_model.item(current_index).text(): 1139 return 1140 self.theory_model.removeRow(current_index) 1141 break 1142 1143 # send in the new item 1149 1144 self.theory_model.appendRow(model_item) 1150 1151 # Pass acting as a debugger anchor1152 pass1153 1145 1154 1146
Note: See TracChangeset
for help on using the changeset viewer.