summaryrefslogtreecommitdiffstats
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index b178d73..54d19eb 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -171,7 +171,7 @@ void WebView::reset(const QString baseUrl)
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()));
- _token = QCryptographicHash::hash(input, QCryptographicHash::Md5).chopped(8).toHex();
+ _token = QCryptographicHash::hash(input, QCryptographicHash::Md5).left(8).toHex();
q.addQueryItem("token", _token);
url.setQuery(q);
_urls.clear();