fix(app-database-service):do not start a transaction while setting app to favourites.
This commit is contained in:
parent
9d48e482eb
commit
427384f7b8
|
@ -791,6 +791,9 @@ bool AppDBManager::handleFavoritesStateUpdate(const QString &desktopFilePath, co
|
|||
ApplicationInfoMap infos;
|
||||
|
||||
//更新favorites状态
|
||||
if (!this->startTransaction()) {
|
||||
return false;
|
||||
}
|
||||
cmd = QString("UPDATE APPINFO SET MODIFYED_TIME='%0', FAVORITES=%1 WHERE DESKTOP_FILE_PATH=:desktopFilePath")
|
||||
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss"))
|
||||
.arg(num);
|
||||
|
|
Loading…
Reference in New Issue