summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-11-16 17:59:18 +0100
committerJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-11-18 09:36:54 +0000
commit9244bc33e32f9df4fcf0eb39b5c5632bf05e3e37 (patch)
treef1867d45612c9ae5a9e0fa0fb53f212ebcbfa1e9 /examples
parentbbd9e142c175f9e9f0252b95dd7f16295ea79bd0 (diff)
fix "open download" in demo browser
Open the downloaded file, not the directory. Change-Id: I61b3a8e6788bf26b1a446459ce8b38774f8c28a0 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'examples')
-rw-r--r--examples/webenginewidgets/browser/downloadmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/webenginewidgets/browser/downloadmanager.cpp b/examples/webenginewidgets/browser/downloadmanager.cpp
index 90b0cec9..aa83d714 100644
--- a/examples/webenginewidgets/browser/downloadmanager.cpp
+++ b/examples/webenginewidgets/browser/downloadmanager.cpp
@@ -150,7 +150,7 @@ void DownloadWidget::stop()
void DownloadWidget::open()
{
- QUrl url = QUrl::fromLocalFile(m_file.absolutePath());
+ QUrl url = QUrl::fromLocalFile(m_file.absoluteFilePath());
QDesktopServices::openUrl(url);
}