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/core/command/Shell.cc

    r8833 r8834  
    3939#include "util/StringUtils.h"
    4040#include "util/SubString.h"
     41#include "util/output/OutputManager.h"
    4142#include "util/output/MemoryWriter.h"
    4243#include "core/CoreIncludes.h"
     
    7172    */
    7273    Shell::Shell(const std::string& consoleName, bool bScrollable)
    73         : BaseWriter(consoleName)
     74        : BaseWriter(consoleName, false)
    7475        , inputBuffer_(new InputBuffer())
    7576        , bScrollable_(bScrollable)
    7677    {
    7778        RegisterRootObject(Shell);
     79
     80        OutputManager::getInstance().registerListener(this);
    7881
    7982        this->scrollPosition_ = 0;
     
    104107    {
    105108        this->inputBuffer_->destroy();
     109
     110        OutputManager::getInstance().unregisterListener(this);
    106111    }
    107112
Note: See TracChangeset for help on using the changeset viewer.