src/gui/components/cc_frm_footer.cpp: fix assinged vector content

Origin commit data
------------------
Branch: ni/coolstream
Commit: e7672dad0d
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-08-19 (Sun, 19 Aug 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2018-08-19 21:14:56 +02:00
committed by vanhofen
parent 0547d9ebc1
commit 1799ea1469

View File

@@ -318,10 +318,12 @@ void CComponentsFooter::setButtonLabels(const vector<button_label_cc> &v_content
buttons[i].button = v_content[i].button; buttons[i].button = v_content[i].button;
buttons[i].text = v_content[i].text; buttons[i].text = v_content[i].text;
buttons[i].locale = v_content[i].locale; buttons[i].locale = v_content[i].locale;
buttons[i].directKeys = v_content[i].directKeys; for (size_t j= 0; j< v_content[i].directKeys.size(); j++)
buttons[i].directKeys.push_back(v_content[i].directKeys[j]);
buttons[i].btn_result = v_content[i].btn_result; buttons[i].btn_result = v_content[i].btn_result;
buttons[i].btn_alias = v_content[i].btn_alias; buttons[i].btn_alias = v_content[i].btn_alias;
} }
setButtonLabels(buttons, label_count, chain_width, label_width); setButtonLabels(buttons, label_count, chain_width, label_width);
delete[] buttons; delete[] buttons;
} }