UI: ConfManagerRpc: Check flags for saving.

This commit is contained in:
Nodir Temirkhodjaev 2021-05-14 18:12:08 +03:00
parent cf4929129d
commit 1005fbc692

View File

@ -81,7 +81,8 @@ bool ConfManagerRpc::saveConf(FirewallConf &newConf)
{
newConf.prepareToSave();
const QVariant confVar = newConf.toVariant(true);
const bool onlyFlags = !newConf.optEdited();
const QVariant confVar = newConf.toVariant(onlyFlags);
setSaving(true);
const bool ok = rpcManager()->doOnServer(Control::Rpc_ConfManager_save, { confVar });