Changeset ba8046c in sasview


Ignore:
Timestamp:
Nov 27, 2018 6:03:12 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
9d23e4c
Parents:
1b03c0a
Message:

Fixed item delete in Data Explorer.
Fixed parameter selection for array distributions.

Location:
src/sas/qtgui
Files:
2 edited

Legend:

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

    re5ae812 rba8046c  
    15991599        while len(indices) > 0: 
    16001600            index = indices[0] 
    1601             #row_index = proxy.mapToSource(index) 
    1602             #item_to_delete = model.itemFromIndex(row_index) 
    1603             item_to_delete = model.itemFromIndex(index) 
     1601            row_index = proxy.mapToSource(index) 
     1602            item_to_delete = model.itemFromIndex(row_index) 
    16041603            if item_to_delete and item_to_delete.isCheckable(): 
    1605                 #row = row_index.row() 
    1606                 row = index.row() 
     1604                row = row_index.row() 
    16071605 
    16081606                # store the deleted item details so we can pass them on later 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r1b03c0a rba8046c  
    30553055                self.iterateOverModel(updateFunctionCaption) 
    30563056                self.kernel_module.set_dispersion(param.name, self.disp_model) 
     3057                # uncheck the parameter 
     3058                self._poly_model.item(row_index, 0).setCheckState(QtCore.Qt.Unchecked) 
    30573059                # disable the row 
    3058                 lo = self.lstPoly.itemDelegate().poly_pd 
     3060                lo = self.lstPoly.itemDelegate().poly_parameter 
    30593061                hi = self.lstPoly.itemDelegate().poly_function 
    30603062                self._poly_model.blockSignals(True) 
Note: See TracChangeset for help on using the changeset viewer.