From aac673391ccee2469765c76341cd60105e144248 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 28 Oct 2017 01:39:19 +0200 Subject: [PATCH] Make state change in wxProgressDialog::Resume() more explicit Reset the state to "Continue" instead of assigning it the dialogs own m_state which was also set to "Continue" from the base class Resume() called just before, but this wasn't necessarily obvious from just reading the code. No real changes. --- src/msw/progdlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/progdlg.cpp b/src/msw/progdlg.cpp index 5c261f57c4..cfb9338bd0 100644 --- a/src/msw/progdlg.cpp +++ b/src/msw/progdlg.cpp @@ -543,7 +543,7 @@ void wxProgressDialog::Resume() { wxCriticalSectionLocker locker(m_sharedData->m_cs); - m_sharedData->m_state = m_state; + m_sharedData->m_state = Continue; // "Skip" was disabled when "Cancel" had been clicked, so re-enable // it now.