diff --git a/src/Mod/PartDesign/Gui/ViewProvider.cpp b/src/Mod/PartDesign/Gui/ViewProvider.cpp index 09d5cf868f..3b85e03629 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.cpp +++ b/src/Mod/PartDesign/Gui/ViewProvider.cpp @@ -60,6 +60,7 @@ ViewProvider::~ViewProvider() bool ViewProvider::doubleClicked(void) { +#if 0 PartDesign::Body* body = PartDesign::Body::findBodyOf(getObject()); // TODO May be move to setEdit()? (2015-07-26, Fat-Zer) if (body != NULL) { @@ -73,6 +74,7 @@ bool ViewProvider::doubleClicked(void) } else { oldTip = NULL; } +#endif try { std::string Msg("Edit "); @@ -150,11 +152,13 @@ void ViewProvider::unsetEdit(int ModNum) // when pressing ESC make sure to close the dialog PartDesign::Body* activeBody = Gui::Application::Instance->activeView()->getActiveObject(PDBODYKEY); Gui::Control().closeDialog(); +#if 0 if ((activeBody != NULL) && (oldTip != NULL)) { Gui::Selection().clearSelection(); Gui::Selection().addSelection(oldTip->getDocument()->getName(), oldTip->getNameInDocument()); Gui::Command::doCommand(Gui::Command::Gui,"FreeCADGui.runCommand('PartDesign_MoveTip')"); } +#endif oldTip = NULL; } else {