mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 09:01:15 +00:00
Fixed another racing condition in Application and ApplicationThread.
This commit is contained in:
parent
537e8f048c
commit
362c4bd32a
@ -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;
|
||||
|
@ -131,6 +131,7 @@ void ApplicationThread::Initialize()
|
||||
// Create helper window
|
||||
this->helperWindow = new ApplicationThread::HelperWindow();
|
||||
this->helperWindow->Initialize();
|
||||
this->NotifyMainThread();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user