fixed bug due to using a static in the wrong place

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8285 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-05-21 21:44:29 +00:00
parent e27ff0698e
commit a1082e9f41
2 changed files with 6 additions and 1 deletions

View File

@ -54,6 +54,8 @@ ServerPage::ServerPage(QWidget * parent, Qt::WindowFlags flags)
connect( ui.cleanKnownIPs_PB, SIGNAL( clicked( ) ), this, SLOT( clearKnownAddressList() ) );
connect( ui.testIncomingTor_PB, SIGNAL( clicked( ) ), this, SLOT( updateTorInProxyIndicator() ) );
manager = NULL ;
QTimer *timer = new QTimer(this);
timer->connect(timer, SIGNAL(timeout()), this, SLOT(updateStatus()));
timer->start(1000);
@ -709,7 +711,8 @@ void ServerPage::updateTorInProxyIndicator()
if(!mIsHiddenNode)
return ;
static QNetworkAccessManager *manager = new QNetworkAccessManager(this);
if(manager == NULL)
manager = new QNetworkAccessManager(this);
QNetworkProxy proxy ;

View File

@ -27,6 +27,7 @@
#include "RsAutoUpdatePage.h"
class QNetworkReply;
class QNetworkAccessManager;
class ServerPage: public ConfigPage
{
@ -68,6 +69,7 @@ private:
Ui::ServerPage ui;
QNetworkAccessManager *manager ;
bool mIsHiddenNode;
};