diff --git a/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp b/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp index 62ed27371..589e42a26 100644 --- a/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp +++ b/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp @@ -95,6 +95,12 @@ void DialogPiecePath::EnbleShowMode(bool disable) ValidObjects(PathIsValid()); } +//--------------------------------------------------------------------------------------------------------------------- +void DialogPiecePath::HideVisibilityTrigger() +{ + ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabControl)); +} + //--------------------------------------------------------------------------------------------------------------------- void DialogPiecePath::ChosenObject(quint32 id, const SceneObject &type) { diff --git a/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.h b/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.h index 6f3b4d5ca..84110dc40 100644 --- a/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.h +++ b/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.h @@ -44,6 +44,7 @@ public: virtual ~DialogPiecePath(); void EnbleShowMode(bool disable); + void HideVisibilityTrigger(); VPiecePath GetPiecePath() const; void SetPiecePath(const VPiecePath &path); diff --git a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp index f1ea7e1ea..0f31d8b0d 100644 --- a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp +++ b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp @@ -704,6 +704,7 @@ void DialogSeamAllowance::ShowCustomSAContextMenu(const QPoint &pos) { dialog->SetFormulaSAWidth(GetFormulaSAWidth()); } + dialog->HideVisibilityTrigger(); dialog->EnbleShowMode(true); m_dialog = dialog; m_dialog->setModal(true);