UnsavedChangesDialog : added correct icons for the categories

+ fixed a crash when try to save changes for the SLA printer preset
This commit is contained in:
YuSanka 2020-10-07 20:13:12 +02:00
parent e40593f2ef
commit bcc23428fa
7 changed files with 65 additions and 19 deletions

View file

@ -402,6 +402,11 @@ Slic3r::GUI::PageShp Tab::add_options_page(const wxString& title, const std::str
icon_idx = ++m_icon_count;
m_icon_index[icon] = icon_idx;
}
if (m_category_icon.find(title) == m_category_icon.end()) {
// Add new category to the category_to_icon list.
m_category_icon[title] = icon;
}
}
// Initialize the page.
#ifdef __WXOSX__