Fix bug in workbench

This commit is contained in:
jrheinlaender
2016-04-12 18:11:56 +02:00
committed by Stefan Tröger
parent 904799d462
commit d32317229d
+2 -1
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