QGIM: don't try to move from const QVariant
Amends 07804a83c4019dca396adee079ad14e4b9b18cb8. Change-Id: I5ab75b9e7463334c901019b2b3df330105b32106 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
1c886724bc
commit
8ab3ff746b
@ -530,7 +530,7 @@ public:
|
||||
if constexpr (has_metaobject<value_type>) {
|
||||
if (QMetaType::fromType<value_type>() == data.metaType()) {
|
||||
if constexpr (std::is_copy_assignable_v<value_type>) {
|
||||
target = std::move(data).value<value_type>();
|
||||
target = data.value<value_type>();
|
||||
return true;
|
||||
} else {
|
||||
qCritical("Cannot assign %s", QMetaType::fromType<value_type>().name());
|
||||
|
Loading…
x
Reference in New Issue
Block a user