From 55b130d8537feaa875e9e1b0085bd4543a016322 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 15 Dec 2016 08:39:53 +0300 Subject: [PATCH] Fix for the issue #1928 --- src/Model/Model_Session.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Model_Session.cpp b/src/Model/Model_Session.cpp index 4c98ca450..5bb981ea3 100644 --- a/src/Model/Model_Session.cpp +++ b/src/Model/Model_Session.cpp @@ -422,7 +422,8 @@ void Model_Session::processEvent(const std::shared_ptr& theMessa } } if (!aFound) { // if not, the part was removed, so activate the module document - setActiveDocument(moduleDocument()); + if (myCurrentDoc.get()) + setActiveDocument(moduleDocument()); } } } -- 2.39.2