Changeset 2dce1d8 in sasview


Ignore:
Timestamp:
Sep 24, 2018 10:00:38 AM (4 weeks ago)
Author:
rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_image_viewer, ESS_GUI_project_save
Children:
65759c7, 085409e3
Parents:
ee22241
Message:

Don't display plugin model category if there are not plugins defined.
SASVIEW-1123

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r712db9e r2dce1d8  
    10561056        self.custom_models = self.customModels() 
    10571057        self.readCustomCategoryInfo() 
     1058        self.onCategoriesChanged() 
     1059 
    10581060        # See if we need to update the combo in-place 
    10591061        if self.cbCategory.currentText() != CATEGORY_CUSTOM: return 
     
    19801982            self.models[name] = plug 
    19811983            plugin_list.append([name, True]) 
    1982         self.master_category_dict[CATEGORY_CUSTOM] = plugin_list 
     1984        if plugin_list: 
     1985            self.master_category_dict[CATEGORY_CUSTOM] = plugin_list 
    19831986 
    19841987    def regenerateModelDict(self): 
Note: See TracChangeset for help on using the changeset viewer.