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 2015-05-08 14:00:22 -04:00 committed by Stefan Tröger
parent a3a5db33e9
commit fab4ec990c

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&)