mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 04:15:52 +08:00
Fixed exception when closing Slic3r
This commit is contained in:
parent
1979ba0e0f
commit
6d5d4e7c24
@ -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) : "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user