fix(app-database-service):do not start a transaction while setting app to favourites.
This commit is contained in:
parent
4a444ce661
commit
600ab2fce0
|
@ -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