From 72911243a769823fb1ad6cf49ed434ceed94d871 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 4 Dec 2020 21:23:12 +0100 Subject: [PATCH] Fixed wrong selection, when try to change printer preset from logical to physical and then in UnsavedChangesDialog select "Cancel" --- src/slic3r/GUI/Tab.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index b6b89f91c..d7465c570 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -3110,6 +3110,11 @@ void Tab::select_preset(std::string preset_name, bool delete_current /*=false*/, // If preset selection was canceled and previously was selected physical printer, we should select it back m_preset_bundle->physical_printers.select_printer(last_selected_ph_printer_name); } + if (m_preset_bundle->physical_printers.has_selection()) { + // If preset selection was canceled and physical printer was selected + // we must disable selection marker for the physical printers + m_preset_bundle->physical_printers.unselect_printer(); + } } update_tab_ui();