Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    r7d8bebf r1420066  
    9393        self.communicator.activeGraphName.connect(self.updatePlotName) 
    9494        self.communicator.plotUpdateSignal.connect(self.updatePlot) 
     95 
    9596        self.cbgraph.editTextChanged.connect(self.enableGraphCombo) 
    9697        self.cbgraph.currentIndexChanged.connect(self.enableGraphCombo) 
     
    280281        # Use 'while' so the row count is forced at every iteration 
    281282        deleted_indices = [] 
     283        deleted_names = [] 
    282284        while ind < self.model.rowCount(): 
    283285            ind += 1 
    284286            item = self.model.item(ind) 
     287 
    285288            if item and item.isCheckable() and item.checkState() == QtCore.Qt.Checked: 
    286289                # Delete these rows from the model 
     290                deleted_names.append(str(self.model.item(ind).text())) 
    287291                deleted_indices.append(item) 
     292 
    288293                self.model.removeRow(ind) 
    289294                # Decrement index since we just deleted it 
     
    292297        # Let others know we deleted data 
    293298        self.communicator.dataDeletedSignal.emit(deleted_indices) 
     299 
     300        # update stored_data 
     301        self.manager.update_stored_data(deleted_names) 
    294302 
    295303    def deleteTheory(self, event): 
     
    869877        self.txt_widget.setWindowIcon(QtGui.QIcon(":/res/ball.ico")) 
    870878        self.txt_widget.setWindowTitle("Data Info: %s" % data.filename) 
     879        self.txt_widget.clear() 
    871880        self.txt_widget.insertPlainText(text_to_show) 
    872881 
     
    10121021        self.model.appendRow(checkbox_item) 
    10131022 
    1014  
    10151023    def updateModelFromPerspective(self, model_item): 
    10161024        """ 
Note: See TracChangeset for help on using the changeset viewer.