Commit 773e0897 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add != operator

parent 8e063ba9
......@@ -48,8 +48,10 @@ MessageViewer::DKIMRule DKIMManageRulesWidgetItem::rule() const
void DKIMManageRulesWidgetItem::setRule(const MessageViewer::DKIMRule &rule)
{
mRule = rule;
updateInfo();
if (mRule != rule) {
mRule = rule;
updateInfo();
}
}
void DKIMManageRulesWidgetItem::updateInfo()
......
......@@ -103,6 +103,11 @@ bool DKIMRule::operator==(const DKIMRule &other) const
return false;
}
bool DKIMRule::operator!=(const DKIMRule &other) const
{
return !operator==(other);
}
int DKIMRule::priority() const
{
return mPriority;
......
......@@ -62,6 +62,7 @@ public:
void setListId(const QString &listId);
Q_REQUIRED_RESULT bool operator==(const DKIMRule &other) const;
Q_REQUIRED_RESULT bool operator!=(const DKIMRule &other) const;
Q_REQUIRED_RESULT int priority() const;
void setPriority(int priority);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment