From ab0a660963941ff55042fc2c3fc1230c4a44e04c Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 24 Feb 2021 21:55:51 +0100 Subject: [PATCH] FEM: [skip ci] connect onButtonDirection() slot with clicked() signal --- src/Mod/Fem/Gui/TaskFemConstraintForce.cpp | 4 ++-- src/Mod/Fem/Gui/TaskFemConstraintForce.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Fem/Gui/TaskFemConstraintForce.cpp b/src/Mod/Fem/Gui/TaskFemConstraintForce.cpp index 6fedd3fffe..0dff70627d 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintForce.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintForce.cpp @@ -83,8 +83,8 @@ TaskFemConstraintForce::TaskFemConstraintForce(ViewProviderFemConstraintForce *C connect(ui->spinForce, SIGNAL(valueChanged(double)), this, SLOT(onForceChanged(double))); - connect(ui->buttonDirection, SIGNAL(pressed()), - this, SLOT(onButtonDirection())); + connect(ui->buttonDirection, SIGNAL(clicked(bool)), + this, SLOT(onButtonDirection(bool))); connect(ui->checkReverse, SIGNAL(toggled(bool)), this, SLOT(onCheckReverse(bool))); connect(ui->listReferences, SIGNAL(itemClicked(QListWidgetItem*)), diff --git a/src/Mod/Fem/Gui/TaskFemConstraintForce.h b/src/Mod/Fem/Gui/TaskFemConstraintForce.h index 9ef4fa2d90..fa5f0f51ca 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintForce.h +++ b/src/Mod/Fem/Gui/TaskFemConstraintForce.h @@ -62,7 +62,7 @@ public: private Q_SLOTS: void onReferenceDeleted(void); void onForceChanged(double); - void onButtonDirection(const bool pressed = true); + void onButtonDirection(const bool pressed = false); void onCheckReverse(bool); void addToSelection(); void removeFromSelection();