forked from qt-creator/qt-creator
QmlDesigner: Fix lookup of navigator icons
The version check was simply wrong. The version of the used item might be higher then the version in the item library. We can still use the icon. I removed the version check completely. There is no reason to have different icons for different versions. This just increases the complexity and introduces bugs without any reason/use cases. Change-Id: Ib6d2040490739ee903ffe8eb308cd942b96444aa Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
10bbc00873
commit
00f8b9ee23
@@ -274,9 +274,7 @@ QList<ItemLibraryEntry> ItemLibraryInfo::entriesForType(const QString &typeName,
|
||||
QList<ItemLibraryEntry> entries;
|
||||
|
||||
foreach (const ItemLibraryEntry &entry, m_nameToEntryHash) {
|
||||
if (entry.typeName() == typeName
|
||||
&& entry.majorVersion() >= majorVersion
|
||||
&& entry.minorVersion() >= minorVersion)
|
||||
if (entry.typeName() == typeName)
|
||||
entries += entry;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user