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();