fix: AM crashed when call update method but application can't found
Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
parent
70c7b92e0e
commit
68996388b1
@ -298,7 +298,9 @@ void ApplicationManager1Service::UpdateApplicationInfo(const QStringList &appIdL
|
|||||||
[&appId](const QSharedPointer<ApplicationService> &app) { return appId == app->id(); });
|
[&appId](const QSharedPointer<ApplicationService> &app) { return appId == app->id(); });
|
||||||
|
|
||||||
if (err == DesktopErrorCode::NotFound) {
|
if (err == DesktopErrorCode::NotFound) {
|
||||||
|
if (destApp != m_applicationList.cend()) {
|
||||||
removeOneApplication(destApp.key());
|
removeOneApplication(destApp.key());
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user