From 8004e19879188f2cb812d8a92ad632bf8e65b7e0 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Wed, 30 Mar 2022 15:21:53 +0200 Subject: [PATCH] Fix of #8126: crash on startup with wx3.0: this appeared after 1f362af. The wxEXEC_SYNC is the default, but not using wxEXEC_NOEVENTS caused a crash in wxWidgets3.0 (see #8126) --- src/slic3r/GUI/GUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index 72b828307..4c1ad0acf 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -555,10 +555,10 @@ void desktop_execute_get_result(wxString command, wxArrayString& output) if (wxGetEnv("APPIMAGE", nullptr)) { // We're running from AppImage wxExecuteEnv exec_env = get_appimage_exec_env(); - ::wxExecute(command, output, 0, &exec_env); + ::wxExecute(command, output, wxEXEC_SYNC | wxEXEC_NOEVENTS, &exec_env); } else { // Looks like we're NOT running from AppImage, we'll make no changes to the environment. - ::wxExecute(command, output); + ::wxExecute(command, output, wxEXEC_SYNC | wxEXEC_NOEVENTS); } } #endif // __linux__