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 + "%");