From 718c916c936b79a9f1cc9cba3ee38b149b503b9c Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 4 Oct 2017 16:06:02 +0200 Subject: [PATCH] Don't overwrite notification flags while setting a title for wxProgressDialog (wxMSW) In wxProgressDialog::SetTitle(), wxSPDD_TITLE_CHANGED flag signaling a request to update a title should be added to the flags already being set and signaling another data waiting for the update. Closes #17966. --- 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 f44c17ba68..486a1cc063 100644 --- a/src/msw/progdlg.cpp +++ b/src/msw/progdlg.cpp @@ -626,7 +626,7 @@ void wxProgressDialog::SetTitle(const wxString& title) { wxCriticalSectionLocker locker(m_sharedData->m_cs); m_sharedData->m_title = title; - m_sharedData->m_notifications = wxSPDD_TITLE_CHANGED; + m_sharedData->m_notifications |= wxSPDD_TITLE_CHANGED; } } #endif // wxHAS_MSW_TASKDIALOG