summaryrefslogtreecommitdiffstats
path: root/src/imports/contacts/details/qdeclarativecontactphonenumber_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/contacts/details/qdeclarativecontactphonenumber_p.h')
-rw-r--r--src/imports/contacts/details/qdeclarativecontactphonenumber_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/contacts/details/qdeclarativecontactphonenumber_p.h b/src/imports/contacts/details/qdeclarativecontactphonenumber_p.h
index cec557bd0..476f18b5d 100644
--- a/src/imports/contacts/details/qdeclarativecontactphonenumber_p.h
+++ b/src/imports/contacts/details/qdeclarativecontactphonenumber_p.h
@@ -104,7 +104,7 @@ public:
{
QList<int> oldList = detail().value< QList<int> >(QContactPhoneNumber::FieldSubTypes);
- if (!readOnly() && subTypes.toSet() != oldList.toSet()) {
+ if (!readOnly() && QSet<int>(subTypes.constBegin(), subTypes.constEnd()) != QSet<int>(oldList.constBegin(), oldList.constEnd())) {
detail().setValue(QContactPhoneNumber::FieldSubTypes, QVariant::fromValue(subTypes));
emit valueChanged();
}