summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/backend.cpp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-12 13:13:07 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-12 13:14:02 +0100
commitc35e4a4b7d7c4da06f0f38f6f669f05d04f4537a (patch)
tree9ab9e5b23d636edceb6bc4916121e0cb86596d39 /utils/regtools/qeditor/backend.cpp
parent0f72c73b5b6f8ef12da726c5a7229f8076cd98f0 (diff)
downloadrockbox-c35e4a4b7d7c4da06f0f38f6f669f05d04f4537a.tar.gz
rockbox-c35e4a4b7d7c4da06f0f38f6f669f05d04f4537a.tar.bz2
rockbox-c35e4a4b7d7c4da06f0f38f6f669f05d04f4537a.zip
Fix red
Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
Diffstat (limited to 'utils/regtools/qeditor/backend.cpp')
-rw-r--r--utils/regtools/qeditor/backend.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/regtools/qeditor/backend.cpp b/utils/regtools/qeditor/backend.cpp
index 44430c25da..15867821e3 100644
--- a/utils/regtools/qeditor/backend.cpp
+++ b/utils/regtools/qeditor/backend.cpp
@@ -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;
}