gui: Fix missing retry and abort button labels

Retry and abort don't have default labels, so you end up with blank
buttons on both Windows and Linux. Fix it.

Retry is used by the portable mode settings dialog. I'm not sure if
abort is used anywhere.
This commit is contained in:
Jonathan Li 2015-10-05 16:44:48 +01:00
parent 84b17765c2
commit f11596fabc
1 changed files with 4 additions and 4 deletions

View File

@ -263,16 +263,16 @@ ModalButtonPanel::ModalButtonPanel( wxWindow* parent, const MsgButtons& buttons
#ifdef __WXGTK__
if( buttons.HasRetry() )
AddActionButton( wxID_RETRY );
AddCustomButton( wxID_RETRY, _("Retry") );
if( buttons.HasAbort() )
AddActionButton( wxID_ABORT );
AddCustomButton( wxID_ABORT, _("Abort") );
#else
if( buttons.HasAbort() )
AddActionButton( wxID_ABORT );
AddCustomButton( wxID_ABORT, _("Abort") );
if( buttons.HasRetry() )
AddActionButton( wxID_RETRY );
AddCustomButton( wxID_RETRY, _("Retry") );
#endif
if( buttons.HasReset() )