[education/rkward/kf5] rkward/plugin: Fix warning
Thomas Friedrichsmeier
null at kde.org
Wed Apr 10 16:12:08 BST 2024
Git commit a0961d3f76e06ca64163df0849fbe51926c44080 by Thomas Friedrichsmeier.
Committed on 05/04/2024 at 08:27.
Pushed by tfry into branch 'kf5'.
Fix warning
M +1 -1 rkward/plugin/rkcomponent.cpp
https://invent.kde.org/education/rkward/-/commit/a0961d3f76e06ca64163df0849fbe51926c44080
diff --git a/rkward/plugin/rkcomponent.cpp b/rkward/plugin/rkcomponent.cpp
index 43042bd20..fbe721736 100644
--- a/rkward/plugin/rkcomponent.cpp
+++ b/rkward/plugin/rkcomponent.cpp
@@ -164,7 +164,7 @@ QString RKComponentBase::fetchStringValue (RKComponentBase* prop, const QString
return (prop->value (modifier).toStringList ().join ("\n"));
}
QVariant value = prop->value (modifier);
- if (value.type () == QVariant::StringList) {
+ if (value.metaType () == QMetaType(QMetaType::QStringList)) {
return value.toStringList ().join ("\n");
}
return (value.toString ());
More information about the rkward-tracker
mailing list