From fab4ec990c2d93d4bb6547b710b4f20b12e33754 Mon Sep 17 00:00:00 2001 From: blobfish Date: Fri, 8 May 2015 14:00:22 -0400 Subject: [PATCH] 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. --- src/Mod/PartDesign/Gui/Workbench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/Gui/Workbench.cpp b/src/Mod/PartDesign/Gui/Workbench.cpp index a33ae9157..5c059a4a7 100644 --- a/src/Mod/PartDesign/Gui/Workbench.cpp +++ b/src/Mod/PartDesign/Gui/Workbench.cpp @@ -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&)