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 committed 2020-10-08 09:25:14 +02:00
1 parent e40593f2ef
commit bcc23428fa
7 files changed
+65 -19

No files matched your search

+5
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__