Partial fix of "Nefunguje menu po změně jazyka #1630"

This commit is contained in:
bubnikv 2019-01-10 14:45:09 +01:00
parent e5062e8662
commit 7492badf77

View file

@ -200,7 +200,7 @@ bool MainFrame::can_export_gcode() const
bool MainFrame::can_change_view() const
{
int page_id = m_tabpanel->GetSelection();
return (page_id != wxNOT_FOUND) ? m_tabpanel->GetPageText((size_t)page_id).Lower() == "plater" : false;
return page_id != wxNOT_FOUND && dynamic_cast<const Slic3r::GUI::Plater*>(m_tabpanel->GetPage((size_t)page_id)) != nullptr;
}
bool MainFrame::can_select() const