Fix bug in workbench

This commit is contained in:
jrheinlaender
2013-09-26 21:10:46 +02:00
committed by Stefan Tröger
parent 579ea3fcd5
commit 3d4c853def

View File

@@ -78,7 +78,8 @@ bool ViewProvider::doubleClicked(void)
void ViewProvider::unsetEdit(int ModNum)
{
// return to the WB we were in before editing the PartDesign feature
Gui::Command::assureWorkbench(oldWb.c_str());
if (!oldWb.empty())
Gui::Command::assureWorkbench(oldWb.c_str());
if (ModNum == ViewProvider::Default) {
// when pressing ESC make sure to close the dialog