Ignore:
Timestamp:
Aug 14, 2017 4:33:18 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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
Message:

SASVIEW-644: mapping between datasets and fit tabs

File:
1 edited

Legend:

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

    ree18d33 r38eb433  
    279279        ind = -1 
    280280        # Use 'while' so the row count is forced at every iteration 
     281        deleted_indices = [] 
    281282        while ind < self.model.rowCount(): 
    282283            ind += 1 
     
    284285            if item and item.isCheckable() and item.checkState() == QtCore.Qt.Checked: 
    285286                # Delete these rows from the model 
     287                deleted_indices.append(item) 
    286288                self.model.removeRow(ind) 
    287289                # Decrement index since we just deleted it 
    288290                ind -= 1 
    289291 
    290         # pass temporarily kept as a breakpoint anchor 
    291         pass 
     292        # Let others know we deleted data 
     293        self.communicator.dataDeletedSignal.emit(deleted_indices) 
    292294 
    293295    def deleteTheory(self, event): 
Note: See TracChangeset for help on using the changeset viewer.