From bd077ae401b4adec46432cc95887cd3db360a841 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 1 Jul 2022 13:46:39 +0200 Subject: [PATCH] Search: Fix of the wrong search, when print technology was changed, but search line wasn't inputted. Partially reverted a248490507f7d0c2fe8f245b14318fbe2100d243 -> UnsavedChangesDialog:A sort of Sercher's options have to be reverted back an the and of update_tree() May be related to #8376 - SEARCH {CTRL-F} --- src/slic3r/GUI/UnsavedChangesDialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/slic3r/GUI/UnsavedChangesDialog.cpp b/src/slic3r/GUI/UnsavedChangesDialog.cpp index 9f8f0e8a9..819a5c427 100644 --- a/src/slic3r/GUI/UnsavedChangesDialog.cpp +++ b/src/slic3r/GUI/UnsavedChangesDialog.cpp @@ -1300,6 +1300,9 @@ void UnsavedChangesDialog::update_tree(Preset::Type type, PresetCollection* pres get_string_value(opt_key, old_config), get_string_value(opt_key, new_config), category_icon_map.at(option.category)); } } + + // Revert sort of searcher back + searcher.sort_options_by_label(); } void UnsavedChangesDialog::on_dpi_changed(const wxRect& suggested_rect) @@ -1709,6 +1712,9 @@ void DiffPresetDialog::update_tree() Fit(); Refresh(); } + + // Revert sort of searcher back + searcher.sort_options_by_label(); } void DiffPresetDialog::on_dpi_changed(const wxRect&)