From cd478850838b98ac82977c8184de478e4a104130 Mon Sep 17 00:00:00 2001 From: skidau Date: Mon, 18 May 2015 13:52:29 +0000 Subject: [PATCH] Made the configuration dialogs stay on top so that they would not be covered by the main window. --- src/wx/wxvbam.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wx/wxvbam.cpp b/src/wx/wxvbam.cpp index 6efaabbe..8bbf483f 100644 --- a/src/wx/wxvbam.cpp +++ b/src/wx/wxvbam.cpp @@ -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();