diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-10 14:37:28 +0100 |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-10 14:40:05 +0100 |
commit | 64946cdc9a5e934132f5c21cbd85e4c21bb5e161 (patch) | |
tree | e0ec038dcbab5272f3834eafbf7ae4c206fb8302 /examples | |
parent | becf20b9ac5d1f5e0373693656e2432e0b5e2304 (diff) | |
download | qt4-tools-64946cdc9a5e934132f5c21cbd85e4c21bb5e161.tar.gz |
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 f8fc00b55a..afe6399087 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] |