mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
Removed most debugging/std::cerr output (in #defines)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@640 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
bbe2ba2103
commit
d5376cd575
24 changed files with 350 additions and 20 deletions
|
@ -52,6 +52,10 @@
|
|||
|
||||
RsCertId getNeighRsCertId(QTreeWidgetItem *i);
|
||||
|
||||
/******
|
||||
* #define NET_DEBUG 1
|
||||
*****/
|
||||
|
||||
/** Constructor */
|
||||
NetworkDialog::NetworkDialog(QWidget *parent)
|
||||
: MainPage(parent), connectdialog(NULL)
|
||||
|
@ -138,8 +142,10 @@ void NetworkDialog::connecttreeWidgetCostumPopupMenu( QPoint point )
|
|||
|
||||
/** Shows Peer Information/Auth Dialog */
|
||||
void NetworkDialog::peerdetails()
|
||||
{
|
||||
{
|
||||
#ifdef NET_DEBUG
|
||||
std::cerr << "ConnectionsDialog::peerdetails()" << std::endl;
|
||||
#endif
|
||||
|
||||
QTreeWidgetItem *wi = getCurrentNeighbour();
|
||||
if (!wi)
|
||||
|
@ -155,7 +161,9 @@ void NetworkDialog::peerdetails()
|
|||
/** Shows Peer Information/Auth Dialog */
|
||||
void NetworkDialog::showpeerdetails(std::string id)
|
||||
{
|
||||
#ifdef NET_DEBUG
|
||||
std::cerr << "ConnectionsDialog::showpeerdetails()" << std::endl;
|
||||
#endif
|
||||
if ((connectdialog) && (connectdialog -> loadPeer(id)))
|
||||
{
|
||||
connectdialog->show();
|
||||
|
@ -392,7 +400,9 @@ QTreeWidgetItem *NetworkDialog::getCurrentNeighbour()
|
|||
QTreeWidgetItem *item = connectWidget -> currentItem();
|
||||
if (!item)
|
||||
{
|
||||
#ifdef NET_DEBUG
|
||||
std::cerr << "Invalid Current Item" << std::endl;
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -418,7 +428,9 @@ RsCertId getNeighRsCertId(QTreeWidgetItem *i)
|
|||
|
||||
std::string NetworkDialog::loadneighbour()
|
||||
{
|
||||
#ifdef NET_DEBUG
|
||||
std::cerr << "ConnectionsDialog::loadneighbour()" << std::endl;
|
||||
#endif
|
||||
QString fileName = QFileDialog::getOpenFileName(this, tr("Select Certificate"), "",
|
||||
tr("Certificates (*.pqi *.pem)"));
|
||||
|
||||
|
@ -434,7 +446,9 @@ std::string NetworkDialog::loadneighbour()
|
|||
void NetworkDialog::addneighbour()
|
||||
{
|
||||
QTreeWidgetItem *c = getCurrentNeighbour();
|
||||
#ifdef NET_DEBUG
|
||||
std::cerr << "ConnectionsDialog::addneighbour()" << std::endl;
|
||||
#endif
|
||||
/*
|
||||
rsServer->NeighAddFriend(getNeighRsCertId(c));
|
||||
*/
|
||||
|
@ -443,7 +457,9 @@ void NetworkDialog::addneighbour()
|
|||
void NetworkDialog::authneighbour()
|
||||
{
|
||||
QTreeWidgetItem *c = getCurrentNeighbour();
|
||||
#ifdef NET_DEBUG
|
||||
std::cerr << "ConnectionsDialog::authneighbour()" << std::endl;
|
||||
#endif
|
||||
/*
|
||||
RsAuthId code;
|
||||
rsServer->NeighAuthFriend(getNeighRsCertId(c), code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue