Commit 4e424b1b authored by Méven Car's avatar Méven Car Committed by Méven Car
Browse files

Fix build error: invalid user-defined conversion from ‘QByteArray’ to ‘const char*’

NO_CHANGELOG
parent 5c765282
Pipeline #100544 passed with stage
in 4 minutes and 5 seconds
......@@ -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;
......
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