From 28fe2262369c207384daf817ccfadff3837ec1d5 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 10 Nov 2013 20:36:15 -0300 Subject: [PATCH] Fix bug: Notify Context's observers in Context::onAdd/RemoveDocument --- src/app/context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/context.cpp b/src/app/context.cpp index 130c17e2d..9aeba559e 100644 --- a/src/app/context.cpp +++ b/src/app/context.cpp @@ -151,12 +151,12 @@ void Context::removeObserver(ContextObserver* observer) void Context::onAddDocument(Document* document) { - // do nothing + m_observers.notifyAddDocument(this, document); } void Context::onRemoveDocument(Document* document) { - // do nothing + m_observers.notifyRemoveDocument(this, document); } } // namespace app