diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-10 13:37:28 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-11-11 17:34:30 (GMT) |
commit | 6f381e1d43b53a05c4c0aedc8bc6b25d92dbfc93 (patch) | |
tree | 98c2b9e60670e0845a9b0ed21432d6b032f4cb21 /examples | |
parent | d635e5d0502289d720b71f32b0eecf534fed96f8 (diff) | |
download | Qt-6f381e1d43b53a05c4c0aedc8bc6b25d92dbfc93.zip Qt-6f381e1d43b53a05c4c0aedc8bc6b25d92dbfc93.tar.gz Qt-6f381e1d43b53a05c4c0aedc8bc6b25d92dbfc93.tar.bz2 |
Fixed opening files in the findfile example.
QDesktopServices::openUrl expects a proper url, not just a filename.
Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dialogs/findfiles/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dialogs/findfiles/window.cpp b/examples/dialogs/findfiles/window.cpp index f8fc00b..afe6399 100644 --- a/examples/dialogs/findfiles/window.cpp +++ b/examples/dialogs/findfiles/window.cpp @@ -243,7 +243,7 @@ void Window::openFileOfItem(int row, int /* column */) { QTableWidgetItem *item = filesTable->item(row, 0); - QDesktopServices::openUrl(currentDir.absoluteFilePath(item->text())); + QDesktopServices::openUrl(QUrl::fromLocalFile(currentDir.absoluteFilePath(item->text()))); } //! [12] |