Fixed another racing condition in Application and ApplicationThread.

This commit is contained in:
Daniel Önnerby 2008-11-13 20:18:49 +00:00
parent 537e8f048c
commit 362c4bd32a
2 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ Application Application::sMainApplication;
, appThread(NULL)
, trayIconManager(NULL)
{
this->appThread = new ApplicationThread();
}
///\brief
@ -125,7 +126,6 @@ void Application::Run(TopLevelWindow& mainWindow)
mainWindow.Initialize();
}
this->appThread = new ApplicationThread();
this->appThread->Initialize();
this->trayIconManager = new TrayIconManager;

View File

@ -131,6 +131,7 @@ void ApplicationThread::Initialize()
// Create helper window
this->helperWindow = new ApplicationThread::HelperWindow();
this->helperWindow->Initialize();
this->NotifyMainThread();
}