From 603ea7e96eed7582221db4bdc27bf0abe94bb06f Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 23 Oct 2017 22:12:52 +0200 Subject: [PATCH] removed debug info from RsCollection --- retroshare-gui/src/gui/common/RsCollection.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/common/RsCollection.cpp b/retroshare-gui/src/gui/common/RsCollection.cpp index 14f522531..f92598137 100644 --- a/retroshare-gui/src/gui/common/RsCollection.cpp +++ b/retroshare-gui/src/gui/common/RsCollection.cpp @@ -36,6 +36,8 @@ #include #include +// #define COLLECTION_DEBUG 1 + const QString RsCollection::ExtensionString = QString("rscollection") ; RsCollection::RsCollection(QObject *parent) @@ -116,14 +118,17 @@ void RsCollection::merge_in(const FileTree& tree) void RsCollection::recursCollectColFileInfos(const QDomElement& e,std::vector& colFileInfos,const QString& current_path, bool bad_chars_in_parent) const { QDomNode n = e.firstChild() ; - +#ifdef COLLECTION_DEBUG std::cerr << "Parsing element " << e.tagName().toStdString() << std::endl; +#endif while(!n.isNull()) { QDomElement ee = n.toElement(); // try to convert the node to an element. +#ifdef COLLECTION_DEBUG std::cerr << " Seeing child " << ee.tagName().toStdString() << std::endl; +#endif if(ee.tagName() == QString("File")) {