fix(app-database):classClass为空时会找错desktop文件的问题.
This commit is contained in:
parent
e107ea3e07
commit
63ec090747
|
@ -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.prepare("SELECT DESKTOP_FILE_PATH, START_UP_WMCLASS FROM APPINFO WHERE EXEC LIKE :classClass OR DESKTOP_FILE_PATH LIKE :classClass");
|
||||||
query.bindValue(":classClass", "%" + classClass + "%");
|
query.bindValue(":classClass", "%" + classClass + "%");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue