From 63ec09074776065287e40a747243a8729091d624 Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Sun, 7 Apr 2024 16:46:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(app-database):classClass=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=97=B6=E4=BC=9A=E6=89=BE=E9=94=99desktop=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ukui-search-app-data-service/app-db-manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ukui-search-app-data-service/app-db-manager.cpp b/ukui-search-app-data-service/app-db-manager.cpp index 06e1b10..5e548e0 100644 --- a/ukui-search-app-data-service/app-db-manager.cpp +++ b/ukui-search-app-data-service/app-db-manager.cpp @@ -1313,7 +1313,7 @@ QString AppDBManager::tranWinIdToDesktopFilePath(const QDBusVariant &id) } } //没有查到 - if (desktopFilePath.isEmpty()) { + if (desktopFilePath.isEmpty() && !classClass.isEmpty()) { query.prepare("SELECT DESKTOP_FILE_PATH, START_UP_WMCLASS FROM APPINFO WHERE EXEC LIKE :classClass OR DESKTOP_FILE_PATH LIKE :classClass"); query.bindValue(":classClass", "%" + classClass + "%");