1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-07 04:01:54 +01:00

bug 26 followup: remove help button and include File > Check Dependencies recommendation in message

This commit is contained in:
mchinen
2011-03-06 18:07:12 +00:00
parent 36dbff73b4
commit c420e785ae
2 changed files with 12 additions and 3 deletions

View File

@@ -70,6 +70,10 @@ ErrorDialog::ErrorDialog(
const bool Close, const bool modal):
wxDialog(parent, (wxWindowID)-1, dlogTitle)
{
long buttonMask;
// only add the help button if we have a URL
buttonMask = (helpURL == wxT("")) ? eOkButton : (eHelpButton | eOkButton);
dhelpURL = helpURL;
dClose = Close;
dModal = modal;
@@ -81,7 +85,7 @@ ErrorDialog::ErrorDialog(
S.SetBorder( 20 );
S.AddFixedText( message );
S.SetBorder( 2 );
S.AddStandardButtons(eHelpButton | eOkButton);
S.AddStandardButtons( buttonMask );
}
S.EndVerticalLay();