From d19f9bb678f86dd6aa27528a8b51084f5417d027 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 21 May 2014 13:48:03 +0400 Subject: [PATCH] Switch to the root document of current remove --- src/Model/Model_PluginManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Model_PluginManager.cpp b/src/Model/Model_PluginManager.cpp index d6fca2bf7..7a0a20d0a 100644 --- a/src/Model/Model_PluginManager.cpp +++ b/src/Model/Model_PluginManager.cpp @@ -63,7 +63,7 @@ bool Model_PluginManager::hasRootDocument() boost::shared_ptr Model_PluginManager::currentDocument() { - if (!myCurrentDoc) + if (!myCurrentDoc || !Model_Application::getApplication()->hasDocument(myCurrentDoc->id())) myCurrentDoc = rootDocument(); return myCurrentDoc; } -- 2.39.2