forked from len0rd/rockbox
Fix red
Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
This commit is contained in:
parent
0f72c73b5b
commit
c35e4a4b7d
4 changed files with 12 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue