From e6c59de3cabd75ab8ec6da3615688d53fc560174 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 15 Nov 2017 15:25:38 +0200 Subject: [PATCH] Fix bug in dialog Seam allowance tool. Don't show the dialog if a main path doesn't contain at least one item. --HG-- branch : develop --- src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp index f0c5781a9..7878b6f3f 100644 --- a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp +++ b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp @@ -441,7 +441,7 @@ void DialogSeamAllowance::ChosenObject(quint32 id, const SceneObject &type) //--------------------------------------------------------------------------------------------------------------------- void DialogSeamAllowance::ShowDialog(bool click) { - if (click == false) + if (click == false && uiTabPaths->listWidgetMainPath->count() > 0) { emit ToolTip(""); prepare = true;