Use the default parameter: QUrl::path(QUrl::PrettyDecoded = 0x000000)

Change it to path() to be consistent with the other usages in the project :)

See: https://doc.qt.io/qt-5/qurl.html#path

Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Michael Schuster 2020-05-20 02:30:45 +02:00
parent dea6ebaa35
commit 7fd431b50f
No known key found for this signature in database
GPG key ID: 00819E3BF4177B28

View file

@ -144,7 +144,7 @@ WebViewPageUrlSchemeHandler::WebViewPageUrlSchemeHandler(QObject *parent)
void WebViewPageUrlSchemeHandler::requestStarted(QWebEngineUrlRequestJob *request) {
QUrl url = request->requestUrl();
QString path = url.path(nullptr).mid(1); // get undecoded path
QString path = url.path().mid(1); // get undecoded path
const QStringList parts = path.split("&");
QString server;