fix error in not-modal dialog Layout

supermerill/SuperSlicer#1480
This commit is contained in:
supermerill 2021-08-12 22:43:54 +02:00 committed by supermerill
parent 7d2fa12f92
commit 7735a0841e

View File

@ -2019,7 +2019,7 @@ MainFrame::ETabType MainFrame::selected_tab() const
return ETabType((uint8_t)ETabType::PrintSettings + m_tabpanel->GetSelection() - 1);
}
} else if (m_layout == ESettingsLayout::Dlg) {
if (!m_main_sizer->IsShown(m_tabpanel)) {
if (!m_settings_dialog.GetSizer()->IsShown(m_tabpanel)) {
if (m_plater->is_view3D_shown()) {
return ETabType::Plater3D;
} else {