Changeset 38eb433 in sasview for src/sas/qtgui/MainWindow/DataExplorer.py
- Timestamp:
- Aug 14, 2017 4:33:18 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:
- 377ade1
- Parents:
- ee18d33
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
ree18d33 r38eb433 279 279 ind = -1 280 280 # Use 'while' so the row count is forced at every iteration 281 deleted_indices = [] 281 282 while ind < self.model.rowCount(): 282 283 ind += 1 … … 284 285 if item and item.isCheckable() and item.checkState() == QtCore.Qt.Checked: 285 286 # Delete these rows from the model 287 deleted_indices.append(item) 286 288 self.model.removeRow(ind) 287 289 # Decrement index since we just deleted it 288 290 ind -= 1 289 291 290 # pass temporarily kept as a breakpoint anchor291 pass292 # Let others know we deleted data 293 self.communicator.dataDeletedSignal.emit(deleted_indices) 292 294 293 295 def deleteTheory(self, event):
Note: See TracChangeset
for help on using the changeset viewer.