Made the configuration dialogs stay on top so that they would not be covered by the main window.

This commit is contained in:
skidau 2015-05-18 13:52:29 +00:00
parent e8dddc9147
commit cd47885083
1 changed files with 5 additions and 0 deletions

View File

@ -847,6 +847,11 @@ void MainFrame::MenuPopped(wxMenuEvent &evt)
// uses dialog_opened as a nesting counter
int MainFrame::ShowModal(wxDialog* dlg)
{
if (gopts.keep_on_top)
dlg->SetWindowStyle(dlg->GetWindowStyle() | wxSTAY_ON_TOP);
else
dlg->SetWindowStyle(dlg->GetWindowStyle() & ~wxSTAY_ON_TOP);
CheckPointer(dlg);
StartModal();
int ret = dlg->ShowModal();