Changes in src/sas/qtgui/MainWindow/DataExplorer.py [7d8bebf:1420066] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r7d8bebf r1420066 93 93 self.communicator.activeGraphName.connect(self.updatePlotName) 94 94 self.communicator.plotUpdateSignal.connect(self.updatePlot) 95 95 96 self.cbgraph.editTextChanged.connect(self.enableGraphCombo) 96 97 self.cbgraph.currentIndexChanged.connect(self.enableGraphCombo) … … 280 281 # Use 'while' so the row count is forced at every iteration 281 282 deleted_indices = [] 283 deleted_names = [] 282 284 while ind < self.model.rowCount(): 283 285 ind += 1 284 286 item = self.model.item(ind) 287 285 288 if item and item.isCheckable() and item.checkState() == QtCore.Qt.Checked: 286 289 # Delete these rows from the model 290 deleted_names.append(str(self.model.item(ind).text())) 287 291 deleted_indices.append(item) 292 288 293 self.model.removeRow(ind) 289 294 # Decrement index since we just deleted it … … 292 297 # Let others know we deleted data 293 298 self.communicator.dataDeletedSignal.emit(deleted_indices) 299 300 # update stored_data 301 self.manager.update_stored_data(deleted_names) 294 302 295 303 def deleteTheory(self, event): … … 869 877 self.txt_widget.setWindowIcon(QtGui.QIcon(":/res/ball.ico")) 870 878 self.txt_widget.setWindowTitle("Data Info: %s" % data.filename) 879 self.txt_widget.clear() 871 880 self.txt_widget.insertPlainText(text_to_show) 872 881 … … 1012 1021 self.model.appendRow(checkbox_item) 1013 1022 1014 1015 1023 def updateModelFromPerspective(self, model_item): 1016 1024 """
Note: See TracChangeset
for help on using the changeset viewer.