diff --git a/src/module/qt_window/qthelper.hh b/src/module/qt_window/qthelper.hh index 9012c6e564268d088b423360493935886b8bf361..be93c3f0283e6be44f0d7cae3537ed853e2655b5 100644 --- a/src/module/qt_window/qthelper.hh +++ b/src/module/qt_window/qthelper.hh @@ -126,7 +126,7 @@ private: // "QVariant::Type(obsolete), the return value should be interpreted // as QMetaType::Type." // So a cast really seems to be needed to avoid warnings (urgh). - return static_cast<int>(v.type()) == static_cast<int>(t); + return static_cast<int>(v.typeId()) == static_cast<int>(t); } void set(mpv_node *dst, const QVariant &src)