From 91ffd8d50167bc987ce44be93df651b82613a9ba Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 2 Mar 2021 17:00:11 +0100 Subject: [PATCH] Custom G-code validation - Do not veto setting tab switch when invalid g-code is found --- src/slic3r/GUI/MainFrame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 6b0dd1ad5a..c1aadb3704 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -549,8 +549,10 @@ void MainFrame::init_tabpanel() wxWindow* panel = m_tabpanel->GetCurrentPage(); if (panel != nullptr) { Tab* tab = dynamic_cast(panel); - if (tab != nullptr && !tab->validate_custom_gcodes()) - evt.Veto(); + if (tab != nullptr) + tab->validate_custom_gcodes(); +// if (tab != nullptr && !tab->validate_custom_gcodes()) +// evt.Veto(); } }); #endif // ENABLE_VALIDATE_CUSTOM_GCODE