From 54676a72285ba7ee3a69920e91fa390a71ef10c9 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Sun, 19 Jul 2015 16:55:07 -0500 Subject: [PATCH] Ensure OnInit() has an event loop And allow events to flow so the splash window updates under GTK --- src/AudacityApp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 9960b38e8..afd884738 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -1144,6 +1144,9 @@ AudacityApp::AudacityApp() // main frame bool AudacityApp::OnInit() { + // Ensure we have an event loop during initialization + wxEventLoopGuarantor eventLoop; + delete wxLog::SetActiveTarget(new AudacityLogger); mLocale = NULL; @@ -1382,6 +1385,7 @@ bool AudacityApp::OnInit() wxSTAY_ON_TOP); temporarywindow->SetTitle(_("Audacity is starting up...")); SetTopWindow(temporarywindow); + wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_UI); //JKC: Would like to put module loading here.