diff --git a/src/ui/util/conf/confutil.cpp b/src/ui/util/conf/confutil.cpp index 0d123f76..f2257d93 100644 --- a/src/ui/util/conf/confutil.cpp +++ b/src/ui/util/conf/confutil.cpp @@ -79,14 +79,6 @@ void writeConfFlags(const FirewallConf &conf, PFORT_CONF_FLAGS confFlags) ConfUtil::ConfUtil(QObject *parent) : QObject(parent) { } -void ConfUtil::setErrorMessage(const QString &errorMessage) -{ - if (m_errorMessage != errorMessage) { - m_errorMessage = errorMessage; - emit errorMessageChanged(); - } -} - int ConfUtil::ruleMaxCount() { return FORT_CONF_RULE_MAX; diff --git a/src/ui/util/conf/confutil.h b/src/ui/util/conf/confutil.h index 98a8d66f..065f162d 100644 --- a/src/ui/util/conf/confutil.h +++ b/src/ui/util/conf/confutil.h @@ -24,7 +24,6 @@ using chars_arr_t = QVector; class ConfUtil : public QObject { Q_OBJECT - Q_PROPERTY(QString errorMessage READ errorMessage NOTIFY errorMessageChanged) public: explicit ConfUtil(QObject *parent = nullptr); @@ -36,9 +35,6 @@ public: static int ruleMaxCount(); static int zoneMaxCount(); -signals: - void errorMessageChanged(); - public slots: int writeVersion(QByteArray &buf); int writeServices( @@ -56,7 +52,7 @@ public slots: bool loadZone(const QByteArray &buf, IpRange &ipRange); private: - void setErrorMessage(const QString &errorMessage); + void setErrorMessage(const QString &errorMessage) { m_errorMessage = errorMessage; } bool parseAddressGroups(const QList &addressGroups, addrranges_arr_t &addressRanges, longs_arr_t &addressGroupOffsets,