Changeset b50f120 in sasview


Ignore:
Timestamp:
Aug 4, 2018 9:57:29 AM (2 weeks ago)
Author:
piotr
Branches:
ESS_GUI_CategroyManager
Parents:
693aaf79
Message:

CR fixes part 1.

Location:
src/sas/qtgui
Files:
2 edited

Legend:

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

    r693aaf79 rb50f120  
    190190            item = QtGui.QStandardItem(model) 
    191191            empty_item = QtGui.QStandardItem() 
     192            empty_item.setEditable(False) 
    192193            # Add a checkbox to it 
    193194            item.setCheckable(True) 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r693aaf79 rb50f120  
    338338        self.cbCategory.addItem(CATEGORY_DEFAULT) 
    339339        self.cbCategory.addItems(category_list) 
    340         self.cbCategory.addItem(CATEGORY_STRUCTURE) 
     340        if CATEGORY_STRUCTURE not in category_list: 
     341            self.cbCategory.addItem(CATEGORY_STRUCTURE) 
    341342        self.cbCategory.setCurrentIndex(0) 
    342343 
Note: See TracChangeset for help on using the changeset viewer.