forked from qt-creator/qt-creator
QmlDesigner: Fix module categories visibility when module is removed
If a module is removed, its categories are now also set visible. Fixes: QDS-4158 Change-Id: Ica1fd1f4d1d821bf74ea2ed57ff42849e8318539 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -431,8 +431,10 @@ void ItemLibraryWidget::removeImport(const QString &importUrl)
|
|||||||
QTC_ASSERT(m_model, return);
|
QTC_ASSERT(m_model, return);
|
||||||
|
|
||||||
ItemLibraryImport *importSection = m_itemLibraryModel->importByUrl(importUrl);
|
ItemLibraryImport *importSection = m_itemLibraryModel->importByUrl(importUrl);
|
||||||
if (importSection)
|
if (importSection) {
|
||||||
|
importSection->showAllCategories();
|
||||||
m_model->changeImports({}, {importSection->importEntry()});
|
m_model->changeImports({}, {importSection->importEntry()});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemLibraryWidget::addImportForItem(const QString &importUrl)
|
void ItemLibraryWidget::addImportForItem(const QString &importUrl)
|
||||||
|
Reference in New Issue
Block a user