From 143760c8d3988ffc7087b1feadfb5df8d318bf61 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Thu, 23 Jul 2015 06:29:02 +0300 Subject: [PATCH] PartDesign/ViewProviderPad: removed unfinished reimplementation of doubleClick() This one resulted in non proper reject of pad dialog. Because the command transaction haven't started. --- src/Mod/PartDesign/Gui/ViewProviderPad.cpp | 6 ------ src/Mod/PartDesign/Gui/ViewProviderPad.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderPad.cpp b/src/Mod/PartDesign/Gui/ViewProviderPad.cpp index 3c7745a67..974fe69c0 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderPad.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderPad.cpp @@ -70,12 +70,6 @@ void ViewProviderPad::setupContextMenu(QMenu* menu, QObject* receiver, const cha PartGui::ViewProviderPart::setupContextMenu(menu, receiver, member); } -bool ViewProviderPad::doubleClicked(void) -{ - Gui::Command::doCommand(Gui::Command::Gui,"Gui.activeDocument().setEdit('%s',0)",this->pcObject->getNameInDocument()); - return true; -} - bool ViewProviderPad::setEdit(int ModNum) { if (ModNum == ViewProvider::Default || ModNum == 1 ) { diff --git a/src/Mod/PartDesign/Gui/ViewProviderPad.h b/src/Mod/PartDesign/Gui/ViewProviderPad.h index 7f7b82ed6..3116a8c80 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderPad.h +++ b/src/Mod/PartDesign/Gui/ViewProviderPad.h @@ -41,7 +41,6 @@ public: /// grouping handling std::vector claimChildren(void)const; void setupContextMenu(QMenu*, QObject*, const char*); - bool doubleClicked(); virtual bool onDelete(const std::vector &);