QmlDesigner: Remove check

This is taken care of in update already.
Empty section are not shown.

Change-Id: I48763c42bb7d1b39e36b87be35e48c558a512c77
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2020-04-07 18:30:46 +02:00
parent f94c8e1143
commit 022b2b47e9

View File

@@ -274,9 +274,6 @@ void ItemLibraryModel::updateVisibility(bool *changed)
bool sectionVisibility = itemLibrarySection->updateSectionVisibility(sectionSearchText, bool sectionVisibility = itemLibrarySection->updateSectionVisibility(sectionSearchText,
&sectionChanged); &sectionChanged);
if (m_flowMode && itemLibrarySection->sectionName() != "My QML Components")
sectionVisibility= false;
*changed |= sectionChanged; *changed |= sectionChanged;
*changed |= itemLibrarySection->setVisible(sectionVisibility); *changed |= itemLibrarySection->setVisible(sectionVisibility);
} }