Factor out wxGenericProgressDialog::EnsureActiveEventLoopExists()

Make this function reusable in order to allow it to be called from the
native MSW wxProgressDialog implementation in the upcoming commit.
This commit is contained in:
Vadim Zeitlin
2017-10-28 22:44:22 +02:00
parent 814a674531
commit 6818d0909e
2 changed files with 13 additions and 5 deletions

View File

@@ -105,6 +105,9 @@ protected:
// Converts seconds to HH:mm:ss format.
static wxString GetFormattedTime(unsigned long timeInSec);
// Create a new event loop if there is no currently running one.
void EnsureActiveEventLoopExists();
// callback for optional abort button
void OnCancel(wxCommandEvent&);