From 8d45b4c468a7a8ae867aaf3105fe6a4f6506e7ab Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 5 Oct 2020 16:06:14 +0200 Subject: [PATCH] Fixed crash when starting gcode viewer on Linux --- src/slic3r/GUI/GUI_App.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index eac93a9f4..2d7fc3f05 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -823,7 +823,10 @@ bool GUI_App::on_init_inner() mainframe = new MainFrame(); // hide settings tabs after first Layout - mainframe->select_tab(size_t(0)); +#if ENABLE_GCODE_VIEWER + if (is_editor()) +#endif // ENABLE_GCODE_VIEWER + mainframe->select_tab(size_t(0)); sidebar().obj_list()->init_objects(); // propagate model objects to object list // update_mode(); // !!! do that later