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
This commit is contained in:
parent
3919345003
commit
b987126b7d
|
@ -237,7 +237,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue