From 21b33ddbc22ccfe046e3bbe6abbc6ec7472a3016 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 9 Jun 2022 20:22:06 +0300 Subject: [PATCH] UI: Add comments --- src/ui/conf/confmanager.cpp | 2 +- src/ui/form/opt/optionscontroller.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/conf/confmanager.cpp b/src/ui/conf/confmanager.cpp index 858d2cdf..9ec0a88c 100644 --- a/src/ui/conf/confmanager.cpp +++ b/src/ui/conf/confmanager.cpp @@ -1226,7 +1226,7 @@ bool ConfManager::saveToDb(const FirewallConf &conf) && saveAppGroups(sqliteDb(), conf) // Save App Groups && removeAppGroupsInDb(sqliteDb(), conf); // Remove App Groups - return checkResult(ok, true); + return checkResult(ok, /*commit=*/true); } void ConfManager::loadExtFlags(IniOptions &ini) diff --git a/src/ui/form/opt/optionscontroller.h b/src/ui/form/opt/optionscontroller.h index 2caebdbb..15510c98 100644 --- a/src/ui/form/opt/optionscontroller.h +++ b/src/ui/form/opt/optionscontroller.h @@ -59,8 +59,8 @@ public slots: void emitEdited(bool edited = true); void resetEdited(); - void saveChanges() { save(true); } - void applyChanges() { save(false); } + void saveChanges() { save(/*closeOnSuccess=*/true); } + void applyChanges() { save(/*closeOnSuccess=*/false); } void closeWindow();