mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-27 07:41:08 -04:00
removed debug info from RsCollection
This commit is contained in:
parent
0359795cae
commit
603ea7e96e
1 changed files with 6 additions and 1 deletions
|
@ -36,6 +36,8 @@
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
|
|
||||||
|
// #define COLLECTION_DEBUG 1
|
||||||
|
|
||||||
const QString RsCollection::ExtensionString = QString("rscollection") ;
|
const QString RsCollection::ExtensionString = QString("rscollection") ;
|
||||||
|
|
||||||
RsCollection::RsCollection(QObject *parent)
|
RsCollection::RsCollection(QObject *parent)
|
||||||
|
@ -116,14 +118,17 @@ void RsCollection::merge_in(const FileTree& tree)
|
||||||
void RsCollection::recursCollectColFileInfos(const QDomElement& e,std::vector<ColFileInfo>& colFileInfos,const QString& current_path, bool bad_chars_in_parent) const
|
void RsCollection::recursCollectColFileInfos(const QDomElement& e,std::vector<ColFileInfo>& colFileInfos,const QString& current_path, bool bad_chars_in_parent) const
|
||||||
{
|
{
|
||||||
QDomNode n = e.firstChild() ;
|
QDomNode n = e.firstChild() ;
|
||||||
|
#ifdef COLLECTION_DEBUG
|
||||||
std::cerr << "Parsing element " << e.tagName().toStdString() << std::endl;
|
std::cerr << "Parsing element " << e.tagName().toStdString() << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
while(!n.isNull())
|
while(!n.isNull())
|
||||||
{
|
{
|
||||||
QDomElement ee = n.toElement(); // try to convert the node to an element.
|
QDomElement ee = n.toElement(); // try to convert the node to an element.
|
||||||
|
|
||||||
|
#ifdef COLLECTION_DEBUG
|
||||||
std::cerr << " Seeing child " << ee.tagName().toStdString() << std::endl;
|
std::cerr << " Seeing child " << ee.tagName().toStdString() << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(ee.tagName() == QString("File"))
|
if(ee.tagName() == QString("File"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue