From 6f381e1d43b53a05c4c0aedc8bc6b25d92dbfc93 Mon Sep 17 00:00:00 2001 From: Denis Dzyubenko Date: Tue, 10 Nov 2009 14:37:28 +0100 Subject: Fixed opening files in the findfile example. QDesktopServices::openUrl expects a proper url, not just a filename. Reviewed-by: Jedrzej Nowacki --- examples/dialogs/findfiles/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- cgit v0.12