mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:45:44 +00:00
UI: Programs: Break on saving error
This commit is contained in:
parent
4f7f31d8a8
commit
a8d308d035
@ -252,7 +252,8 @@ void ConfAppManager::deleteApps(const QVector<qint64> &appIdList)
|
||||
bool isWildcard = false;
|
||||
|
||||
for (const qint64 appId : appIdList) {
|
||||
deleteApp(appId, isWildcard);
|
||||
if (!deleteApp(appId, isWildcard))
|
||||
break;
|
||||
}
|
||||
|
||||
if (isWildcard) {
|
||||
@ -363,7 +364,8 @@ void ConfAppManager::updateAppsBlocked(
|
||||
bool isWildcard = (appIdList.size() > 7);
|
||||
|
||||
for (const qint64 appId : appIdList) {
|
||||
updateAppBlocked(appId, blocked, killProcess, isWildcard);
|
||||
if (!updateAppBlocked(appId, blocked, killProcess, isWildcard))
|
||||
break;
|
||||
}
|
||||
|
||||
if (isWildcard) {
|
||||
@ -377,7 +379,7 @@ bool ConfAppManager::updateAppBlocked(
|
||||
App app;
|
||||
app.appId = appId;
|
||||
if (!loadAppById(app))
|
||||
return false;
|
||||
return true;
|
||||
|
||||
if (!prepareAppBlocked(app, blocked, killProcess) || !saveAppBlocked(app))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user