* Lock() the looper in application destructor. Otherwise RemoveHandler()

complains.
* Call the TRoster::Init() to add the registrar itself to the roster.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@515 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2002-07-28 19:36:05 +00:00
parent 1e298dbb58
commit 60aa4feab5
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,7 @@ Registrar::Registrar()
Registrar::~Registrar()
{
FUNCTION_START();
Lock();
fMIMEManager->Lock();
fMIMEManager->Quit();
RemoveHandler(fClipboardHandler);
@ -118,9 +119,13 @@ void
Registrar::ReadyToRun()
{
FUNCTION_START();
// create roster
fRoster = new TRoster;
fRoster->Init();
// create clipboard handler
fClipboardHandler = new ClipboardHandler;
AddHandler(fClipboardHandler);
// create MIME manager
fMIMEManager = new MIMEManager;
fMIMEManager->Run();
FUNCTION_END();