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