mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-22 04:35:17 +00:00
Fixed exception when closing Slic3r
This commit is contained in:
@@ -2426,6 +2426,9 @@ void Tab::OnTreeSelChange(wxTreeEvent& event)
|
||||
wxWindowUpdateLocker noUpdates(this);
|
||||
#endif
|
||||
|
||||
if (m_pages.empty())
|
||||
return;
|
||||
|
||||
Page* page = nullptr;
|
||||
const auto sel_item = m_treectrl->GetSelection();
|
||||
const auto selection = sel_item ? m_treectrl->GetItemText(sel_item) : "";
|
||||
|
||||
Reference in New Issue
Block a user