Skip to content

Commit

Permalink
+ suppress log messages of active document or view in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 14, 2016
1 parent bdb359d commit ba72952
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/Application.cpp
Expand Up @@ -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();
Expand All @@ -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<Gui::BaseView*>::iterator It=d->passive.begin();It!=d->passive.end();++It)
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit ba72952

Please sign in to comment.