From d3c509aa2fa9dd3470322f22d0d29cee5638a54e Mon Sep 17 00:00:00 2001 From: hewenfei Date: Tue, 28 Jun 2022 17:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9qurl=E4=B8=BAqstring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/file-utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsearch/file-utils.cpp b/libsearch/file-utils.cpp index dcad187..c7d09e3 100644 --- a/libsearch/file-utils.cpp +++ b/libsearch/file-utils.cpp @@ -841,7 +841,7 @@ int FileUtils::openFile(QString &path, bool openInDir) isSuccess = false; } else { appLaunchInterface->setTimeout(10000); - QDBusReply reply = appLaunchInterface->call("LaunchDefaultAppWithUrl", QUrl::fromLocalFile(path)); + QDBusReply reply = appLaunchInterface->call("LaunchDefaultAppWithUrl", QUrl::fromLocalFile(path).toString()); if(reply.isValid()) { isSuccess = reply; } else {