From 5540897c49cc0bad8b5d7106058db1a56bdea016 Mon Sep 17 00:00:00 2001 From: joss17 Date: Fri, 31 Jul 2009 18:32:16 +0000 Subject: [PATCH] add libretroshare version message git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1465 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/HelpDialog.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/retroshare-gui/src/gui/HelpDialog.cpp b/retroshare-gui/src/gui/HelpDialog.cpp index 611ab1528..50c09edb6 100644 --- a/retroshare-gui/src/gui/HelpDialog.cpp +++ b/retroshare-gui/src/gui/HelpDialog.cpp @@ -69,23 +69,17 @@ HelpDialog::HelpDialog(QWidget *parent) QTextStream in(&versionFile); QString version = in.readAll(); +#ifdef ADD_LIBRETROSHARE_VERSION_INFO /* get libretroshare version */ std::map::iterator vit; std::map versions; const RsConfig &conf = rsiface->getConfig(); bool retv = rsDisc->getDiscVersions(versions); - std::cerr << "Version display own id " << conf.ownId << std::endl; - std::cerr << "Versions map size : " << versions.size() << std::endl; - - for(vit = versions.begin(); vit != versions.end(); vit++) - { - std::cerr << "vit first " << vit->first << " vit second " << vit->second << std::endl; - } if (retv && versions.end() != (vit = versions.find(conf.ownId))) { - std::cerr << "Version displaying " << std::endl; - version += QString(" ") + QString::fromStdString(vit->second); + version += QString::fromStdString("Retroshare library version : \n") + QString::fromStdString(vit->second); } +#endif ui.version->setText(version); }