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))
{
HelpSystem::ShowHelpDialog(this, wxT("Timer_Record"));
HelpSystem::ShowHelpDialog(this, wxT("Timer_Record"), true);
}
wxString TimerRecordDialog::GetHoursMinsString(int iMinutes) {

View File

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