Skip to content

Commit 9244bc3

Browse files
committed
fix "open download" in demo browser
Open the downloaded file, not the directory. Change-Id: I61b3a8e6788bf26b1a446459ce8b38774f8c28a0 Reviewed-by: Michal Klocek <[email protected]> Reviewed-by: Peter Varga <[email protected]>
1 parent bbd9e14 commit 9244bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/webenginewidgets/browser/downloadmanager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void DownloadWidget::stop()
150150

151151
void DownloadWidget::open()
152152
{
153-
QUrl url = QUrl::fromLocalFile(m_file.absolutePath());
153+
QUrl url = QUrl::fromLocalFile(m_file.absoluteFilePath());
154154
QDesktopServices::openUrl(url);
155155
}
156156

0 commit comments

Comments
 (0)