From 4bec2bb815cbe36dc26f1efe34aa90be377d9d0a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 10 Mar 2017 16:27:56 +0200 Subject: [PATCH] Do not warn a user about wrong configuration if top and bottom pin points are not selected. --HG-- branch : feature --- src/libs/vtools/dialogs/tools/dialogseamallowance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp b/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp index 8265dab82..a21408d52 100644 --- a/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp +++ b/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp @@ -1288,7 +1288,8 @@ void DialogSeamAllowance::GrainlinePinPointChanged() QColor color = okColor; const quint32 topPinId = getCurrentObjectId(ui->comboBoxGrainlineTopPin); const quint32 bottomPinId = getCurrentObjectId(ui->comboBoxGrainlineBottomPin); - if (topPinId != NULL_ID && bottomPinId != NULL_ID && topPinId != bottomPinId) + if ((topPinId == NULL_ID && bottomPinId == NULL_ID) || + (topPinId != NULL_ID && bottomPinId != NULL_ID && topPinId != bottomPinId)) { flagGPin = true; color = okColor;