mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:36:28 +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;
|
bool isWildcard = false;
|
||||||
|
|
||||||
for (const qint64 appId : appIdList) {
|
for (const qint64 appId : appIdList) {
|
||||||
deleteApp(appId, isWildcard);
|
if (!deleteApp(appId, isWildcard))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isWildcard) {
|
if (isWildcard) {
|
||||||
@ -363,7 +364,8 @@ void ConfAppManager::updateAppsBlocked(
|
|||||||
bool isWildcard = (appIdList.size() > 7);
|
bool isWildcard = (appIdList.size() > 7);
|
||||||
|
|
||||||
for (const qint64 appId : appIdList) {
|
for (const qint64 appId : appIdList) {
|
||||||
updateAppBlocked(appId, blocked, killProcess, isWildcard);
|
if (!updateAppBlocked(appId, blocked, killProcess, isWildcard))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isWildcard) {
|
if (isWildcard) {
|
||||||
@ -377,7 +379,7 @@ bool ConfAppManager::updateAppBlocked(
|
|||||||
App app;
|
App app;
|
||||||
app.appId = appId;
|
app.appId = appId;
|
||||||
if (!loadAppById(app))
|
if (!loadAppById(app))
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
if (!prepareAppBlocked(app, blocked, killProcess) || !saveAppBlocked(app))
|
if (!prepareAppBlocked(app, blocked, killProcess) || !saveAppBlocked(app))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user