From 193603551f7412ebb5fd743dda7a2c8a7c43b2a2 Mon Sep 17 00:00:00 2001 From: david avery Date: Sat, 16 May 2015 14:38:51 -0600 Subject: [PATCH] wx3 fix --- src/widgets/ProgressDialog.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/widgets/ProgressDialog.cpp b/src/widgets/ProgressDialog.cpp index ee7f0d454..e30f9e8c8 100644 --- a/src/widgets/ProgressDialog.cpp +++ b/src/widgets/ProgressDialog.cpp @@ -1392,8 +1392,11 @@ ProgressDialog::Update(int value, const wxString & message) mLastUpdate = now; } - +#if wxCHECK_VERSION(3, 0, 0) + wxEventLoopBase *loop = wxEventLoop::GetActive(); +#else wxEventLoop *loop = wxEventLoop::GetActive(); +#endif if (loop) { int i = 10; @@ -1627,7 +1630,11 @@ int TimerProgressDialog::Update(const wxString & message /*= wxEmptyString*/) mLastUpdate = now; } +#if wxCHECK_VERSION(3, 0, 0) + wxEventLoopBase *loop = wxEventLoop::GetActive(); +#else wxEventLoop *loop = wxEventLoop::GetActive(); +#endif if (loop) { int i = 10;