1
0
Fork 0
forked from len0rd/rockbox
Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
This commit is contained in:
Amaury Pouly 2014-02-12 13:13:07 +01:00
parent 0f72c73b5b
commit c35e4a4b7d
4 changed files with 12 additions and 9 deletions

View file

@ -33,7 +33,10 @@ bool Backend::GetSocByName(const QString& name, SocRef& s)
bool Backend::LoadSocDesc(const QString& filename)
{
bool ret = soc_desc_parse_xml(filename.toStdString(), m_socs);
std::vector< soc_t > new_socs;
bool ret = soc_desc_parse_xml(filename.toStdString(), new_socs);
for(size_t i = 0; i < new_socs.size(); i++)
m_socs.push_back(new_socs[i]);
emit OnSocListChanged();
return ret;
}