summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilian Wolff <mail@milianw.de>2016-08-21 21:01:38 (GMT)
committerMilian Wolff <mail@milianw.de>2016-08-21 21:01:40 (GMT)
commit1a594a71a930aa017280c3adf8681ed203d04c68 (patch)
tree7ba31df36e11e0434ea29043f8395e7dfbd0b7ec
parent7a15ab89a42bc66dac99adf9deb9cdceac4e2761 (diff)
Replace deprecated QAIM::reset with begin/endResetModel
Fixes compile when deprecated features are disabled.
-rw-r--r--src/acl/aclmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/acl/aclmanager.cpp b/src/acl/aclmanager.cpp
index c752042..856b942 100644
--- a/src/acl/aclmanager.cpp
+++ b/src/acl/aclmanager.cpp
@@ -116,6 +116,8 @@ public:
void setRights(const QMap<QByteArray, KIMAP::Acl::Rights> &rights)
{
+ beginResetModel();
+
mRights.clear();
QMapIterator<QByteArray, KIMAP::Acl::Rights> it(rights);
@@ -124,7 +126,7 @@ public:
mRights.append(qMakePair(it.key(), it.value()));
}
- reset();
+ endResetModel();
}
QMap<QByteArray, KIMAP::Acl::Rights> rights() const