summaryrefslogtreecommitdiffstats
path: root/src/webengine
diff options
context:
space:
mode:
authorTamas Zakor <ztamas@inf.u-szeged.hu>2019-09-12 09:41:21 +0200
committerTamas Zakor <ztamas@inf.u-szeged.hu>2019-09-16 09:13:29 +0200
commit7ab606e2e4ed3655e9362276f14ede4846308097 (patch)
tree575e9357772906352db6f378cd590637ae1bcc6b /src/webengine
parentffbb8cd7cd6bc8b6ff0c73e3fc45cb2f74e0f4c2 (diff)
Fix Q(Quick)WebEngineDownloadItem::setPath() path conversion
Also extend auto test with path checking Task-number: QTBUG-78213 Change-Id: Icb5d4ec831d8a665894d5890f983752c3af60ce8 Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org> Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/webengine')
-rw-r--r--src/webengine/api/qquickwebenginedownloaditem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webengine/api/qquickwebenginedownloaditem.cpp b/src/webengine/api/qquickwebenginedownloaditem.cpp
index f9b305e88..3ccd27094 100644
--- a/src/webengine/api/qquickwebenginedownloaditem.cpp
+++ b/src/webengine/api/qquickwebenginedownloaditem.cpp
@@ -463,7 +463,7 @@ void QQuickWebEngineDownloadItem::setPath(QString path)
newDirectory = QStringLiteral("");
newFileName = path;
} else {
- newDirectory = QFileInfo(path).filePath();
+ newDirectory = QFileInfo(path).path();
newFileName = QFileInfo(path).fileName();
}