diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2017-09-29 11:54:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-29 12:57:28 -0700 |
commit | 475dfe1194d63ce4c081987a13076198bfcdd820 (patch) | |
tree | fed87589549bdb491c057819672fce69c8cca62f /desktop-widgets/plugins/facebook/facebookconnectwidget.h | |
parent | 7b8832bc0ba1d287baae247307d3352da1371b55 (diff) | |
download | subsurface-475dfe1194d63ce4c081987a13076198bfcdd820.tar.gz |
[Facebook] Use only one Network Manager
Fixes quite a few memory leaks.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/plugins/facebook/facebookconnectwidget.h')
-rw-r--r-- | desktop-widgets/plugins/facebook/facebookconnectwidget.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.h b/desktop-widgets/plugins/facebook/facebookconnectwidget.h index c47f4be66..e39286832 100644 --- a/desktop-widgets/plugins/facebook/facebookconnectwidget.h +++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.h @@ -10,6 +10,7 @@ class QWebEngineView; class QWebView; #endif class QNetworkReply; +class QNetworkAccessManager; namespace Ui { class FacebookConnectWidget; @@ -24,6 +25,7 @@ public: void requestAlbumId(); void requestUserId(); QUrl connectUrl(); + QUrl albumListUrl(); bool loggedIn(); signals: void justLoggedIn(bool triggererd); @@ -41,12 +43,12 @@ public slots: private: explicit FacebookManager(QObject *parent = 0); QString albumName; - QUrl albumListUrl; + QNetworkAccessManager *manager; }; class FacebookConnectWidget : public QDialog { - Q_OBJECT + Q_OBJECT public: explicit FacebookConnectWidget(QWidget* parent = 0); void facebookLoggedIn(); |