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:
parent
6832a58695
commit
f076655b38
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue