Skip to content

Commit

Permalink
Navigation control (Ctrl-Tab popup window) is now centered on CodeLit…
Browse files Browse the repository at this point in the history
…e, regardless of its parent book
  • Loading branch information
eranif committed May 15, 2024
1 parent f000c35 commit 9ef399d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiteEditor/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5937,7 +5937,7 @@ void ShowNavDialog(Notebook* book)
return;
}

NotebookNavigationDlg dlg(book->GetParent(), book);
NotebookNavigationDlg dlg(EventNotifier::Get()->TopFrame(), book);
if (dlg.ShowModal() == wxID_OK && dlg.GetSelection() != wxNOT_FOUND) {
book->SetSelection(dlg.GetSelection());
}
Expand Down

0 comments on commit 9ef399d

Please sign in to comment.