summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 7646324..55443b3 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -1,7 +1,6 @@
#include "webview.h"
#include "nam.h"
#include "global.h"
-#include "settings.h"
#include <QWebFrame>
#include <QNetworkReply>
@@ -191,8 +190,8 @@ void WebView::reset(const QString baseUrl)
q.addQueryItem("action", "browser");
QByteArray input;
input.append((const char*)this, sizeof(*this));
- input.append(QString().sprintf("%d %d", QCursor::pos().x(), QCursor::pos().y()));
- input.append(QString::number(QDateTime::currentMSecsSinceEpoch()));
+ input.append(QString::asprintf("%d %d", QCursor::pos().x(), QCursor::pos().y()).toUtf8());
+ input.append(QString::number(QDateTime::currentMSecsSinceEpoch()).toUtf8());
_token = QCryptographicHash::hash(input, QCryptographicHash::Md5).left(8).toHex();
q.addQueryItem("token", _token);
url.setQuery(q);