aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/scrobbler')
-rw-r--r--src/plugins/General/scrobbler/scrobbler.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp
index c263ba8b9..5d6b38f76 100644
--- a/src/plugins/General/scrobbler/scrobbler.cpp
+++ b/src/plugins/General/scrobbler/scrobbler.cpp
@@ -27,6 +27,7 @@
#include <QDateTime>
#include <QDir>
#include <qmmp/soundcore.h>
+#include <qmmp/qmmpsettings.h>
#include <qmmp/qmmp.h>
#include "scrobbler.h"
@@ -51,11 +52,12 @@ Scrobbler::Scrobbler(const QString &url,
m_server = url;
m_name = name;
//load global proxy settings
- if (Qmmp::useProxy())
- m_http->setProxy(Qmmp::proxy().host(),
- Qmmp::proxy().port(),
- Qmmp::useProxyAuth() ? Qmmp::proxy().userName() : QString(),
- Qmmp::useProxyAuth() ? Qmmp::proxy().password() : QString());
+ QmmpSettings *gs = QmmpSettings::instance(); //TODO use QmmpSettings::networkSettingsChanged()
+ if (gs->isProxyEnabled())
+ m_http->setProxy(gs->proxy().host(),
+ gs->proxy().port(),
+ gs->useProxyAuth() ? gs->proxy().userName() : QString(),
+ gs->useProxyAuth() ? gs->proxy().password() : QString());
m_disabled = m_login.isEmpty() || m_passw.isEmpty();
m_passw = QString(QCryptographicHash::hash(m_passw.toAscii(), QCryptographicHash::Md5).toHex());