From f076655b384dda11d4a4799fa0e09e3436c9e652 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 26 Nov 2022 20:10:57 +0100 Subject: [PATCH] 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. --- src/generic/prntdlgg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/prntdlgg.cpp b/src/generic/prntdlgg.cpp index dcbb1af81e..d18e1e856f 100644 --- a/src/generic/prntdlgg.cpp +++ b/src/generic/prntdlgg.cpp @@ -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;