mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
fixed bug causing FileTree links to open empty
This commit is contained in:
parent
b6aeacbed4
commit
ee2120a5bc
1 changed files with 6 additions and 0 deletions
|
@ -48,12 +48,18 @@ RsCollection::RsCollection(QObject *parent)
|
||||||
RsCollection::RsCollection(const FileTree& fr)
|
RsCollection::RsCollection(const FileTree& fr)
|
||||||
: _xml_doc("RsCollection")
|
: _xml_doc("RsCollection")
|
||||||
{
|
{
|
||||||
|
_root = _xml_doc.createElement("RsCollection");
|
||||||
|
_xml_doc.appendChild(_root);
|
||||||
|
|
||||||
recursAddElements(_xml_doc,fr,0,_root) ;
|
recursAddElements(_xml_doc,fr,0,_root) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
RsCollection::RsCollection(const std::vector<DirDetails>& file_infos, QObject *parent)
|
RsCollection::RsCollection(const std::vector<DirDetails>& file_infos, QObject *parent)
|
||||||
: QObject(parent), _xml_doc("RsCollection")
|
: QObject(parent), _xml_doc("RsCollection")
|
||||||
{
|
{
|
||||||
|
_root = _xml_doc.createElement("RsCollection");
|
||||||
|
_xml_doc.appendChild(_root);
|
||||||
|
|
||||||
for(uint32_t i = 0;i<file_infos.size();++i)
|
for(uint32_t i = 0;i<file_infos.size();++i)
|
||||||
recursAddElements(_xml_doc,file_infos[i],_root) ;
|
recursAddElements(_xml_doc,file_infos[i],_root) ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue