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

@@ -46,6 +46,9 @@ bool ViewProviderLinearPattern::setEdit(int ModNum)
TaskDlgLinearPatternParameters *linearpatternDlg = NULL;
if (checkDlgOpen(linearpatternDlg)) {
// always change to PartDesign WB, remember where we come from
oldWb = Gui::Command::assureWorkbench("PartDesignWorkbench");
// start the edit dialog
if (linearpatternDlg)
Gui::Control().showDialog(linearpatternDlg);