Help dialogs are modal only when necessary
This commit is contained in:
parent
a00f866b54
commit
839bb0a6db
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue