Skip to content

Commit

Permalink
Fix Q_GADGET property reading
Browse files Browse the repository at this point in the history
We want to read from the object inside the variant here, not from the
variant itself.
  • Loading branch information
vkrause authored and steveire committed Aug 15, 2019
1 parent 345fbca commit ef6c98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/lib/metatype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ QVariant Grantlee::MetaType::lookup(const QVariant &object,
return QVariant();
}
const auto mp = mo->property(idx);
return mp.readOnGadget(&object);
return mp.readOnGadget(object.constData());
}
}

Expand Down

0 comments on commit ef6c98a

Please sign in to comment.