diff --git a/src/gui/components/cc.h b/src/gui/components/cc.h index 66ec13f13..386c4ef5d 100644 --- a/src/gui/components/cc.h +++ b/src/gui/components/cc.h @@ -505,6 +505,7 @@ class CComponentsHeader : public CComponentsForm void initCCHeaderText(); void initCCHeaderButtons(); void initCCHItems(); + void initCCHDefaultButtons(); protected: void initVarHeader(); diff --git a/src/gui/components/components.cpp b/src/gui/components/components.cpp index d9da92d01..5cce2280f 100644 --- a/src/gui/components/components.cpp +++ b/src/gui/components/components.cpp @@ -1819,7 +1819,7 @@ void CComponentsHeader::removeHeaderButtons() cch_btn_obj->removeAllIcons(); } -void CComponentsHeader::initCCHeaderButtons() +void CComponentsHeader::initCCHDefaultButtons() { if (cch_buttons & CC_BTN_EXIT) v_cch_btn.push_back(NEUTRINO_ICON_BUTTON_HOME); @@ -1829,6 +1829,11 @@ void CComponentsHeader::initCCHeaderButtons() v_cch_btn.push_back(NEUTRINO_ICON_BUTTON_INFO); if (cch_buttons & CC_BTN_MENU) v_cch_btn.push_back(NEUTRINO_ICON_BUTTON_MENU); +} + +void CComponentsHeader::initCCHeaderButtons() +{ + initCCHDefaultButtons(); //exit if no button defined if (v_cch_btn.empty())