diff --git a/core/networkpacket.cpp b/core/networkpacket.cpp index 7a91d18b8..49f223c67 100644 --- a/core/networkpacket.cpp +++ b/core/networkpacket.cpp @@ -90,7 +90,7 @@ void qvariant2qobject(const QVariantMap& variant, T* object) { for ( QVariantMap::const_iterator iter = variant.begin(); iter != variant.end(); ++iter ) { - const int propertyIndex = T::staticMetaObject.indexOfProperty(iter.key().toLatin1()); + const int propertyIndex = T::staticMetaObject.indexOfProperty(iter.key().toLatin1().data()); if (propertyIndex < 0) { qCWarning(KDECONNECT_CORE) << "missing property" << object << iter.key(); continue;