diff --git a/apps/opencs/view/world/util.cpp b/apps/opencs/view/world/util.cpp index f827470781..ef927dd0aa 100644 --- a/apps/opencs/view/world/util.cpp +++ b/apps/opencs/view/world/util.cpp @@ -364,7 +364,11 @@ void CSVWorld::CommandDelegate::setEditorData(QWidget* editor, const QModelIndex if (!n.isEmpty()) { if (!variant.isValid()) +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + variant = QVariant(editor->property(n).metaType(), (const void*)nullptr); +#else variant = QVariant(editor->property(n).userType(), (const void*)nullptr); +#endif editor->setProperty(n, variant); } }