Made the configuration dialogs stay on top so that they would not be covered by the main window.
This commit is contained in:
parent
e8dddc9147
commit
cd47885083
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue