Stop dispatching events from wxGenericPrintSetupDialog ctor

Block while waiting for "lpstat -v" to execute: it shouldn't take a long
time to run it and dispatching events from inside this dialog ctor was
really unexpected.
This commit is contained in:
Vadim Zeitlin 2022-11-26 20:10:57 +01:00
parent 6832a58695
commit f076655b38

View file

@ -519,7 +519,7 @@ void wxGenericPrintSetupDialog::Init(wxPrintData* data)
wxArrayString errors;
wxArrayString output;
long res = wxExecute( wxT("lpstat -v"), output, errors, wxEXEC_NODISABLE );
long res = wxExecute( wxT("lpstat -v"), output, errors, wxEXEC_NOEVENTS );
if (res >= 0 && errors.GetCount() == 0)
{
size_t i;