* 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:
parent
1e298dbb58
commit
60aa4feab5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue