From b5960fef38e2a505642171b3220c2cedb6b069a2 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Tue, 28 Dec 2021 16:57:42 -0500 Subject: [PATCH] Fix another broken tree book selection in paged dialogs. --- common/widgets/paged_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/widgets/paged_dialog.cpp b/common/widgets/paged_dialog.cpp index 5808f4a9b1..f6409c5eda 100644 --- a/common/widgets/paged_dialog.cpp +++ b/common/widgets/paged_dialog.cpp @@ -309,7 +309,7 @@ void PAGED_DIALOG::OnPageChanged( wxBookCtrlEvent& event ) int page = event.GetSelection(); // Use the first sub-page when a tree level node is selected. - if( m_treebook->GetPageParent( page ) == wxNOT_FOUND ) + if( m_treebook->GetCurrentPage()->GetChildren().IsEmpty() ) { unsigned next = page + 1;