UI: ProgramsWindow: Fix refresh after app removing.

This commit is contained in:
Nodir Temirkhodjaev 2020-01-09 09:43:13 +05:00
parent 5c4ae3f975
commit cd25e9c44e

View File

@ -234,12 +234,15 @@ bool AppListModel::updateApp(qint64 appId, const QString &appPath,
void AppListModel::deleteApp(qint64 appId, const QString &appPath, int row)
{
beginRemoveRows(QModelIndex(), row, row);
if (confManager()->updateDriverDeleteApp(appPath)
&& confManager()->deleteApp(appId)) {
beginRemoveRows(QModelIndex(), row, row);
invalidateRowCache();
endRemoveRows();
removeRow(row);
}
endRemoveRows();
}
void AppListModel::reset()