mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-21 06:16:29 -04:00
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:
parent
e27ff0698e
commit
a1082e9f41
@ -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 ;
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user