mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-25 14:50:54 -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
2 changed files with 6 additions and 1 deletions
|
@ -54,6 +54,8 @@ ServerPage::ServerPage(QWidget * parent, Qt::WindowFlags flags)
|
||||||
connect( ui.cleanKnownIPs_PB, SIGNAL( clicked( ) ), this, SLOT( clearKnownAddressList() ) );
|
connect( ui.cleanKnownIPs_PB, SIGNAL( clicked( ) ), this, SLOT( clearKnownAddressList() ) );
|
||||||
connect( ui.testIncomingTor_PB, SIGNAL( clicked( ) ), this, SLOT( updateTorInProxyIndicator() ) );
|
connect( ui.testIncomingTor_PB, SIGNAL( clicked( ) ), this, SLOT( updateTorInProxyIndicator() ) );
|
||||||
|
|
||||||
|
manager = NULL ;
|
||||||
|
|
||||||
QTimer *timer = new QTimer(this);
|
QTimer *timer = new QTimer(this);
|
||||||
timer->connect(timer, SIGNAL(timeout()), this, SLOT(updateStatus()));
|
timer->connect(timer, SIGNAL(timeout()), this, SLOT(updateStatus()));
|
||||||
timer->start(1000);
|
timer->start(1000);
|
||||||
|
@ -709,7 +711,8 @@ void ServerPage::updateTorInProxyIndicator()
|
||||||
if(!mIsHiddenNode)
|
if(!mIsHiddenNode)
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
static QNetworkAccessManager *manager = new QNetworkAccessManager(this);
|
if(manager == NULL)
|
||||||
|
manager = new QNetworkAccessManager(this);
|
||||||
|
|
||||||
QNetworkProxy proxy ;
|
QNetworkProxy proxy ;
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include "RsAutoUpdatePage.h"
|
#include "RsAutoUpdatePage.h"
|
||||||
|
|
||||||
class QNetworkReply;
|
class QNetworkReply;
|
||||||
|
class QNetworkAccessManager;
|
||||||
|
|
||||||
class ServerPage: public ConfigPage
|
class ServerPage: public ConfigPage
|
||||||
{
|
{
|
||||||
|
@ -68,6 +69,7 @@ private:
|
||||||
|
|
||||||
Ui::ServerPage ui;
|
Ui::ServerPage ui;
|
||||||
|
|
||||||
|
QNetworkAccessManager *manager ;
|
||||||
|
|
||||||
bool mIsHiddenNode;
|
bool mIsHiddenNode;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue