From e7520c3d18709337e5340dff6a2d0f995cbdc27c Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 10 Apr 2018 14:52:03 +0200 Subject: [PATCH] Don't use select_preset on OS X --- xs/src/slic3r/GUI/Tab.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xs/src/slic3r/GUI/Tab.cpp b/xs/src/slic3r/GUI/Tab.cpp index c074a1e58..1b70dfa5c 100644 --- a/xs/src/slic3r/GUI/Tab.cpp +++ b/xs/src/slic3r/GUI/Tab.cpp @@ -58,7 +58,10 @@ void Tab::create_preset_tab(PresetBundle *preset_bundle) { m_cc_presets_choice->SetText(selected); std::string selected_string = selected.ToUTF8().data(); -// select_preset(selected_string); +#ifdef __APPLE__ +#else + select_preset(selected_string); +#endif } }); @@ -143,7 +146,10 @@ void Tab::create_preset_tab(PresetBundle *preset_bundle) if (selected != _(L("System presets")) && selected != _(L("Default presets"))) { std::string selected_string = selected.ToUTF8().data(); +#ifdef __APPLE__ +#else select_preset(selected_string); +#endif } });