diff --git a/src/Mod/Part/Gui/ViewProvider.cpp b/src/Mod/Part/Gui/ViewProvider.cpp index 28d855c76e..07976a1f88 100644 --- a/src/Mod/Part/Gui/ViewProvider.cpp +++ b/src/Mod/Part/Gui/ViewProvider.cpp @@ -50,7 +50,7 @@ bool ViewProviderPart::doubleClicked() try { QString text = QObject::tr("Edit %1").arg(QString::fromUtf8(getObject()->Label.getValue())); Gui::Command::openCommand(text.toUtf8()); - Gui::cmdSetEdit(pcObject); + Gui::cmdSetEdit(pcObject, Gui::Application::Instance->getUserEditMode()); return true; } catch (const Base::Exception& e) { diff --git a/src/Mod/PartDesign/Gui/ViewProvider.cpp b/src/Mod/PartDesign/Gui/ViewProvider.cpp index 918c3eb2eb..1322469c0b 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.cpp +++ b/src/Mod/PartDesign/Gui/ViewProvider.cpp @@ -90,7 +90,7 @@ bool ViewProvider::doubleClicked() try { QString text = QObject::tr("Edit %1").arg(QString::fromUtf8(getObject()->Label.getValue())); Gui::Command::openCommand(text.toUtf8()); - Gui::cmdSetEdit(pcObject); + Gui::cmdSetEdit(pcObject, Gui::Application::Instance->getUserEditMode()); } catch (const Base::Exception&) { Gui::Command::abortCommand(); diff --git a/src/Mod/PartDesign/Gui/ViewProviderBase.cpp b/src/Mod/PartDesign/Gui/ViewProviderBase.cpp index 2b548c7f78..cb34c2e79c 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderBase.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderBase.cpp @@ -53,7 +53,7 @@ bool ViewProviderBase::doubleClicked() std::string Msg("Edit "); Msg += base->Label.getValue(); Gui::Command::openCommand(Msg.c_str()); - Gui::cmdSetEdit(base); + Gui::cmdSetEdit(base, Gui::Application::Instance->getUserEditMode()); } catch (const Base::Exception&) { Gui::Command::abortCommand();