From 13ff0d797339d62b5b8b7d1b2cbbf55765a2ce8b Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Fri, 13 Nov 2015 14:54:26 +0200 Subject: [PATCH] Removed unwanted strings --HG-- branch : feature --- src/libs/vtools/dialogs/tools/dialogdetail.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libs/vtools/dialogs/tools/dialogdetail.cpp b/src/libs/vtools/dialogs/tools/dialogdetail.cpp index 32e9d8ba9..ec6bafdd2 100644 --- a/src/libs/vtools/dialogs/tools/dialogdetail.cpp +++ b/src/libs/vtools/dialogs/tools/dialogdetail.cpp @@ -172,8 +172,6 @@ void DialogDetail::NewItem(quint32 id, const Tool &typeTool, const NodeDetail &t qDebug()<<"Got wrong tools. Ignore."; return; } - ui.toolButtonUp->setEnabled(ui.checkBoxSeams->isChecked() && not ui.checkBoxClosed->isChecked()); - ui.toolButtonDown->setEnabled(ui.checkBoxSeams->isChecked() && not ui.checkBoxClosed->isChecked()); bool canAddNewPoint = false; @@ -342,8 +340,8 @@ void DialogDetail::ClickedSeams(bool checked) ui.checkBoxClosed->setEnabled(checked); ui.doubleSpinBoxSeams->setEnabled(checked); - ui.toolButtonUp->setEnabled(checked && not ui.checkBoxClosed->isChecked()); - ui.toolButtonDown->setEnabled(checked && not ui.checkBoxClosed->isChecked()); + ui.toolButtonUp->setEnabled(checked); + ui.toolButtonDown->setEnabled(checked); if (checked && ui.doubleSpinBoxSeams->value() <= 0) { @@ -366,8 +364,6 @@ void DialogDetail::ClickedSeams(bool checked) void DialogDetail::ClickedClosed(bool checked) { closed = checked; - ui.toolButtonUp->setEnabled(not checked); - ui.toolButtonDown->setEnabled(not checked); } //---------------------------------------------------------------------------------------------------------------------