Comment 3 for bug 1836178

Revision history for this message
Jeff Young (jeyjey) wrote : Re: Default selected button in close confirmation dialogue is "Discard Changes"

The code (in UnsavedChangesDialog()) certainly attempts to set the right default (YES/Save):

    wxMessageDialog dlg( parent, aMessage, wxEmptyString,
                         wxYES_NO | wxCANCEL | wxYES_DEFAULT | wxICON_WARNING | wxCENTER );
    dlg.SetExtendedMessage( _( "If you don't save, all your changes will be permanently lost." ) );
    dlg.SetYesNoLabels( _( "Save" ), _( "Discard Changes" ) );

Not sure what's going wrong, but it'll have to be debugged on GTK.