diff --git a/src/ui/conf/app.cpp b/src/ui/conf/app.cpp index fd7a5a8a..f6869fbc 100644 --- a/src/ui/conf/app.cpp +++ b/src/ui/conf/app.cpp @@ -12,22 +12,27 @@ bool App::isBaseFlagsEqual(const App &o) const && parked == o.parked; } -bool App::isZonesEqual(const App &o) const -{ - return acceptZones == o.acceptZones && rejectZones == o.rejectZones; -} - bool App::isExtraFlagsEqual(const App &o) const { return logBlocked == o.logBlocked && logConn == o.logConn && blocked == o.blocked && killProcess == o.killProcess; } +bool App::isZonesEqual(const App &o) const +{ + return acceptZones == o.acceptZones && rejectZones == o.rejectZones; +} + +bool App::isPathsEqual(const App &o) const +{ + return appOriginPath == o.appOriginPath && appPath == o.appPath; +} + bool App::isOptionsEqual(const App &o) const { return isFlagsEqual(o) && isZonesEqual(o) && groupIndex == o.groupIndex && ruleId == o.ruleId - && appOriginPath == o.appOriginPath && appPath == o.appPath && notes == o.notes - && scheduleAction == o.scheduleAction && scheduleTime == o.scheduleTime; + && isPathsEqual(o) && notes == o.notes && scheduleAction == o.scheduleAction + && scheduleTime == o.scheduleTime; } bool App::isNameEqual(const App &o) const diff --git a/src/ui/conf/app.h b/src/ui/conf/app.h index 11a88cb2..35c61365 100644 --- a/src/ui/conf/app.h +++ b/src/ui/conf/app.h @@ -18,6 +18,7 @@ public: bool isBaseFlagsEqual(const App &o) const; bool isExtraFlagsEqual(const App &o) const; bool isZonesEqual(const App &o) const; + bool isPathsEqual(const App &o) const; bool isOptionsEqual(const App &o) const; bool isNameEqual(const App &o) const;