Skip to content

Commit

Permalink
fix error in not-modal dialog Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Aug 12, 2021
1 parent 3a8a64a commit 8c4fc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/MainFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8c4fc6c

Please sign in to comment.