mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:56:22 +00:00
UI: ProgramsWindow: Fix refresh after app removing.
This commit is contained in:
parent
5c4ae3f975
commit
cd25e9c44e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user