add new signal to Document class for convinience and add method to DocumentObserver

This commit is contained in:
wmayer
2017-04-07 15:14:45 +02:00
parent 9637dcbd44
commit e4cba8e80f
4 changed files with 13 additions and 0 deletions

View File

@@ -593,6 +593,7 @@ void Application::slotDeleteDocument(const App::Document& Doc)
// We must clear the selection here to notify all observers
Gui::Selection().clearSelection(doc->second->getDocument()->getName());
doc->second->signalDeleteDocument(*doc->second);
signalDeleteDocument(*doc->second);
// If the active document gets destructed we must set it to 0. If there are further existing documents then the