From ec33381064ae6ecf4ba3aee15d5bc873d640db84 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 8 Sep 2018 20:16:07 -0700 Subject: [PATCH] pcbnew: Keep Yes/No dialogs above the windows Modal yes/no questions should not be allowed to fall behind other windows. They need to be answered before the program continues and clicking outside of the dialog should not hide dialog itself. Fixes: lp:1790640 * https://bugs.launchpad.net/kicad/+bug/1790640 --- common/confirm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/confirm.cpp b/common/confirm.cpp index d22120860e..2f4e7a63d3 100644 --- a/common/confirm.cpp +++ b/common/confirm.cpp @@ -279,7 +279,7 @@ void DisplayInfoMessage( wxWindow* aParent, const wxString& aMessage, const wxSt bool IsOK( wxWindow* aParent, const wxString& aMessage ) { wxMessageDialog dlg( aParent, aMessage, _( "Confirmation" ), - wxYES_NO | wxCENTRE | wxICON_QUESTION ); + wxYES_NO | wxCENTRE | wxICON_QUESTION | wxSTAY_ON_TOP ); return dlg.ShowModal() == wxID_YES; }