mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
CComponentsFooter: fix force re init of button container
clear() removes only items and their instances inside button container, but all other properties (e.g. width) are not touched. Re init should avoids this.
This commit is contained in:
@@ -107,8 +107,10 @@ void CComponentsFooter::initVarFooter( const int& x_pos, const int& y_pos, const
|
|||||||
void CComponentsFooter::setButtonLabels(const struct button_label_cc * const content, const size_t& label_count, const int& chain_width, const int& label_width)
|
void CComponentsFooter::setButtonLabels(const struct button_label_cc * const content, const size_t& label_count, const int& chain_width, const int& label_width)
|
||||||
{
|
{
|
||||||
/* clean up before init */
|
/* clean up before init */
|
||||||
if (btn_container)
|
if (btn_container){
|
||||||
btn_container->clear();
|
removeCCItem(btn_container);
|
||||||
|
btn_container = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (label_count == 0)
|
if (label_count == 0)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user