diff --git a/src/Gui/TaskView/TaskView.cpp b/src/Gui/TaskView/TaskView.cpp index aa52c86e7..45cacd8af 100644 --- a/src/Gui/TaskView/TaskView.cpp +++ b/src/Gui/TaskView/TaskView.cpp @@ -25,6 +25,7 @@ #ifndef _PreComp_ # include +# include #endif #include "TaskView.h" @@ -274,8 +275,17 @@ void TaskView::keyPressEvent(QKeyEvent* ke) for (int i=0; iisDefault() && pb->isVisible()) { - if (pb->isEnabled()) + if (pb->isEnabled()) { +#if defined(FC_OS_MACOSX) + // #0001354: Crash on using Enter-Key for confirmation of chamfer or fillet entries + QPoint pos = QCursor::pos(); + QCursor::setPos(pb->parentWidget()->mapToGlobal(pb->pos())); +#endif pb->click(); +#if defined(FC_OS_MACOSX) + QCursor::setPos(pos); +#endif + } return; } } @@ -287,8 +297,17 @@ void TaskView::keyPressEvent(QKeyEvent* ke) for (int i=0; ibuttonRole(pb) == QDialogButtonBox::RejectRole) { - if (pb->isEnabled()) + if (pb->isEnabled()) { +#if defined(FC_OS_MACOSX) + // #0001354: Crash on using Enter-Key for confirmation of chamfer or fillet entries + QPoint pos = QCursor::pos(); + QCursor::setPos(pb->parentWidget()->mapToGlobal(pb->pos())); +#endif pb->click(); +#if defined(FC_OS_MACOSX) + QCursor::setPos(pos); +#endif + } return; } }