summaryrefslogtreecommitdiff
path: root/cad/PrusaSlicer/files/patch-src_slic3r_GUI_GUI__ObjectLayers.cpp
blob: ec31c5974dacb6fe0e2752281439063c62eb33cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/slic3r/GUI/GUI_ObjectLayers.cpp.orig	2024-12-20 11:54:34 UTC
+++ src/slic3r/GUI/GUI_ObjectLayers.cpp
@@ -348,7 +348,7 @@ LayerRangeEditor::LayerRangeEditor( ObjectLayers* pare
         m_enter_pressed     = true;
         // Workaround! Under Linux we have to use CallAfter() to avoid crash after pressing ENTER key
         // see #7531, #8055, #8408
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
         wxTheApp->CallAfter([this, edit_fn]() {
 #endif
             // If LayersList wasn't updated/recreated, we can call wxEVT_KILL_FOCUS.Skip()
@@ -363,7 +363,7 @@ LayerRangeEditor::LayerRangeEditor( ObjectLayers* pare
                 SetValue(m_valid_value);
                 m_call_kill_focus = true;
             }
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
         });
 #endif 
     }, this->GetId());