From ba72952dd82ea3fc5696f1cdf876aae7622f34f9 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 14 Jul 2016 16:32:29 +0200 Subject: [PATCH] + suppress log messages of active document or view in release build --- src/Gui/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index ad14a9ce9c..ae6133b10e 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -850,6 +850,7 @@ void Application::setActiveDocument(Gui::Document* pcDocument) return; } +#ifdef FC_DEBUG // May be useful for error detection if (d->activeDocument) { App::Document* doc = d->activeDocument->getDocument(); @@ -858,6 +859,7 @@ void Application::setActiveDocument(Gui::Document* pcDocument) else { Base::Console().Log("No active document\n"); } +#endif // notify all views attached to the application (not views belong to a special document) for(list::iterator It=d->passive.begin();It!=d->passive.end();++It) @@ -933,9 +935,11 @@ void Application::onUpdate(void) /// Gets called if a view gets activated, this manages the whole activation scheme void Application::viewActivated(MDIView* pcView) { +#ifdef FC_DEBUG // May be useful for error detection Base::Console().Log("Active view is %s (at %p)\n", (const char*)pcView->windowTitle().toUtf8(),pcView); +#endif signalActivateView(pcView);