Switch to PartDesign workbench as soon as a PartDesign feature is edited

This commit is contained in:
jrheinlaender
2013-04-25 13:49:56 +04:30
committed by Stefan Tröger
parent 0fd0a5d605
commit 9ca63b603a
15 changed files with 71 additions and 33 deletions

View File

@@ -51,6 +51,7 @@
#include "TaskTransformedParameters.h"
#include <Base/Console.h>
#include <Gui/Control.h>
#include <Gui/Command.h>
#include <Gui/Application.h>
#include <Mod/Part/App/TopoShape.h>
#include <Mod/PartDesign/App/FeatureAdditive.h>
@@ -129,6 +130,9 @@ bool ViewProviderTransformed::setEdit(int ModNum)
void ViewProviderTransformed::unsetEdit(int ModNum)
{
// return to the WB we were in before editing the PartDesign feature
Gui::Command::assureWorkbench(oldWb.c_str());
if (ModNum == ViewProvider::Default) {
// when pressing ESC make sure to close the dialog
Gui::Control().closeDialog();