QtSupport: Fix QtVersionItem::uniqueId()

Amends 7540dbeb8e.

Change-Id: I137c5e467c312f40b6645ccf7436dc812793084a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Kandeler
2024-10-07 15:04:36 +02:00
parent ffd8f8326d
commit ef2d83c7b7

View File

@@ -230,7 +230,7 @@ QVariant QtVersionItem::data(int column, int role) const
int QtVersionItem::uniqueId() const
{
if (const auto v = std::get_if<QtVersion *>(&m_version))
return v ? (*v)->uniqueId() : -1;
return *v ? (*v)->uniqueId() : -1;
return *std::get_if<int>(&m_version);
}