Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 12, 2011, 12:26:40 AM (13 years ago)
Author:
landauf
Message:

added flag to disable automatic registration of output listeners. avoids crash during creation of a Shell if some verbose context (object_list?) is activated.
different handling of sub-contexts whose main-context is also explicitly registered (even though that's not the intended way to use)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/util/output/OutputListener.cc

    r8833 r8834  
    3333namespace orxonox
    3434{
    35     OutputListener::OutputListener()
     35    OutputListener::OutputListener(bool bRegister)
    3636    {
    3737        this->levelMask_ = level::none;
     
    3939        this->additionalContextsMask_ = context::none;
    4040
    41         OutputManager::getInstance().registerListener(this);
     41        if (bRegister)
     42            OutputManager::getInstance().registerListener(this);
    4243    }
    4344
Note: See TracChangeset for help on using the changeset viewer.