Changeset 515c23df in sasview
- Timestamp:
- Jul 9, 2018 5:17:19 AM (6 years ago)
- Branches:
- ESS_GUI, 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:
- d9150d8, 6052c02
- Parents:
- 05fa132
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
rb1a7a81 r515c23df 30 30 31 31 DEFAULT_PERSPECTIVE = "Fitting" 32 33 logger = logging.getLogger(__name__) 32 34 33 35 class DataExplorerWindow(DroppableDataLoadWidget): … … 296 298 ind = -1 297 299 # Use 'while' so the row count is forced at every iteration 298 deleted_i ndices = []300 deleted_items = [] 299 301 deleted_names = [] 300 302 while ind < self.model.rowCount(): … … 305 307 # Delete these rows from the model 306 308 deleted_names.append(str(self.model.item(ind).text())) 307 deleted_i ndices.append(item)309 deleted_items.append(item) 308 310 309 311 self.model.removeRow(ind) … … 312 314 313 315 # Let others know we deleted data 314 self.communicator.dataDeletedSignal.emit(deleted_i ndices)316 self.communicator.dataDeletedSignal.emit(deleted_items) 315 317 316 318 # update stored_data … … 1027 1029 model = proxy.sourceModel() 1028 1030 1029 deleted_i ndices = []1031 deleted_items = [] 1030 1032 deleted_names = [] 1031 1033 … … 1042 1044 1043 1045 # store the deleted item details so we can pass them on later 1044 deleted_names.append( str(self.model.item(row).text()))1045 deleted_i ndices.append(self.model.item(row))1046 deleted_names.append(item_to_delete.text()) 1047 deleted_items.append(item_to_delete) 1046 1048 1047 1049 if item_to_delete.parent(): … … 1054 1056 1055 1057 # Let others know we deleted data 1056 self.communicator.dataDeletedSignal.emit(deleted_i ndices)1058 self.communicator.dataDeletedSignal.emit(deleted_items) 1057 1059 1058 1060 # update stored_data
Note: See TracChangeset
for help on using the changeset viewer.