Changeset 2dce1d8 in sasview


Ignore:
Timestamp:
Sep 24, 2018 10:00:38 AM (6 years ago)
Author:
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:
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.