Made wxNO_DEFAULT set the "no" button as the default, according to the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -148,7 +148,15 @@ wxSizer *wxDialogBase::CreateButtonSizer( long flags )
|
||||
box->Add( cancel, 0, wxLEFT|wxRIGHT, margin );
|
||||
}
|
||||
|
||||
if ((flags & wxNO_DEFAULT) == 0)
|
||||
if (flags & wxNO_DEFAULT)
|
||||
{
|
||||
if (no)
|
||||
{
|
||||
no->SetDefault();
|
||||
no->SetFocus();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ok)
|
||||
{
|
||||
|
Reference in New Issue
Block a user