mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed current category changing to all parts.
This commit is contained in:
parent
c7c6a42f78
commit
587207b7cf
1 changed files with 2 additions and 2 deletions
|
@ -1089,13 +1089,13 @@ void lcPartSelectionWidget::UpdateCategories()
|
|||
CurrentModelCategoryItem->setData(0, static_cast<int>(lcPartCategoryRole::Type), static_cast<int>(lcPartCategoryType::PartsInUse));
|
||||
|
||||
if (CurrentType == lcPartCategoryType::PartsInUse && CurrentIndex == 0)
|
||||
CurrentItem = AllPartsCategoryItem;
|
||||
CurrentItem = CurrentModelCategoryItem;
|
||||
|
||||
QTreeWidgetItem* SubmodelsCategoryItem = new QTreeWidgetItem(mCategoriesWidget, QStringList(tr("Submodels")));
|
||||
SubmodelsCategoryItem->setData(0, static_cast<int>(lcPartCategoryRole::Type), static_cast<int>(lcPartCategoryType::Submodels));
|
||||
|
||||
if (CurrentType == lcPartCategoryType::Submodels && CurrentIndex == 0)
|
||||
CurrentItem = AllPartsCategoryItem;
|
||||
CurrentItem = SubmodelsCategoryItem;
|
||||
|
||||
for (int PaletteIdx = 0; PaletteIdx < static_cast<int>(mPartPalettes.size()); PaletteIdx++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue