1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Help dialogs are modal only when necessary

This commit is contained in:
Paul Licameli 2016-06-21 11:54:21 -04:00
parent a00f866b54
commit 839bb0a6db
2 changed files with 5 additions and 3 deletions

View File

@ -348,7 +348,7 @@ void TimerRecordDialog::OnAutoExportCheckBox_Change(wxCommandEvent& WXUNUSED(eve
void TimerRecordDialog::OnHelpButtonClick(wxCommandEvent& WXUNUSED(event)) void TimerRecordDialog::OnHelpButtonClick(wxCommandEvent& WXUNUSED(event))
{ {
HelpSystem::ShowHelpDialog(this, wxT("Timer_Record")); HelpSystem::ShowHelpDialog(this, wxT("Timer_Record"), true);
} }
wxString TimerRecordDialog::GetHoursMinsString(int iMinutes) { wxString TimerRecordDialog::GetHoursMinsString(int iMinutes) {

View File

@ -177,8 +177,10 @@ void HelpSystem::ShowHtmlText(wxWindow *pParent,
pFrame->SetSizeHints(pWnd->GetSize()); pFrame->SetSizeHints(pWnd->GetSize());
pFrame->SetName(Title); pFrame->SetName(Title);
pFrame->Show( true ); if (bModal)
pWnd->ShowModal(); pWnd->ShowModal();
else
pWnd->Show(true);
html->SetRelatedStatusBar( 0 ); html->SetRelatedStatusBar( 0 );
html->SetFocus(); html->SetFocus();