diff --git a/src/app/valentina/dialogs/vwidgetdetails.cpp b/src/app/valentina/dialogs/vwidgetdetails.cpp index 84dbefd55..54429d240 100644 --- a/src/app/valentina/dialogs/vwidgetdetails.cpp +++ b/src/app/valentina/dialogs/vwidgetdetails.cpp @@ -202,13 +202,12 @@ void VWidgetDetails::ToggledPieceItem(QTableWidgetItem *item) try { tool = qobject_cast(VAbstractPattern::getTool(id)); + tool->setVisible(ui->checkBoxHideNotInLayout->isChecked() ? inLayout : true); } catch (VExceptionBadId &) { // do nothing } - - tool->setVisible(ui->checkBoxHideNotInLayout->isChecked() ? inLayout : true); } }