PartDesign: Workbench: comment out switchToDocument inside 'slots'

This causing a crash when opening a previous versioned file while already in part design.
    Can't predict timing of migration call from signals.
This commit is contained in:
blobfish
2016-04-12 18:12:06 +02:00
committed by Stefan Tröger
parent a3a5db33e9
commit fab4ec990c
+3 -3
View File
@@ -400,17 +400,17 @@ void Workbench::_switchToDocument(const App::Document* doc)
void Workbench::slotActiveDocument(const Gui::Document& Doc)
{
_switchToDocument(Doc.getDocument());
// _switchToDocument(Doc.getDocument());
}
void Workbench::slotNewDocument(const App::Document& Doc)
{
_switchToDocument(&Doc);
// _switchToDocument(&Doc);
}
void Workbench::slotFinishRestoreDocument(const App::Document& Doc)
{
_switchToDocument(&Doc);
// _switchToDocument(&Doc);
}
void Workbench::slotDeleteDocument(const App::Document&)