mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-30 07:29:29 +02:00
More string typing in ErrorReportDialog, remove arg default
This commit is contained in:
parent
062abdde5d
commit
3a3ff8ecbe
@ -46,7 +46,7 @@ END_EVENT_TABLE()
|
||||
|
||||
ErrorReportDialog::ErrorReportDialog(
|
||||
wxWindow* parent, const TranslatableString& dlogTitle,
|
||||
const TranslatableString& message, const wxString& helpUrl,
|
||||
const TranslatableString& message, const ManualPageID& helpUrl,
|
||||
const wxString& log, const bool modal)
|
||||
: wxDialogWrapper(
|
||||
parent, wxID_ANY, dlogTitle, wxDefaultPosition, wxDefaultSize,
|
||||
@ -198,10 +198,11 @@ void ErrorReportDialog::OnDontSend(wxCommandEvent& event)
|
||||
|
||||
void ErrorReportDialog::OnHelp(wxCommandEvent& event)
|
||||
{
|
||||
if (mHelpUrl.StartsWith(wxT("innerlink:")))
|
||||
const auto &helpUrl = mHelpUrl.GET();
|
||||
if (helpUrl.StartsWith(wxT("innerlink:")))
|
||||
{
|
||||
HelpSystem::ShowHtmlText(
|
||||
this, TitleText(mHelpUrl.Mid(10)), HelpText(mHelpUrl.Mid(10)), false,
|
||||
this, TitleText(helpUrl.Mid(10)), HelpText(helpUrl.Mid(10)), false,
|
||||
true);
|
||||
return;
|
||||
}
|
||||
@ -214,7 +215,7 @@ void ShowErrorReportDialog(
|
||||
const TranslatableString& message, const wxString& helpPage,
|
||||
const wxString& log)
|
||||
{
|
||||
ErrorReportDialog dlog(parent, dlogTitle, message, helpPage, log);
|
||||
ErrorReportDialog dlog(parent, dlogTitle, message, helpPage, log, true);
|
||||
|
||||
dlog.CentreOnParent();
|
||||
dlog.ShowModal();
|
||||
|
@ -37,8 +37,8 @@ class ErrorReportDialog final : public wxDialogWrapper
|
||||
public:
|
||||
ErrorReportDialog(
|
||||
wxWindow* parent, const TranslatableString& dlogTitle,
|
||||
const TranslatableString& message, const wxString& helpUrl,
|
||||
const wxString& log, const bool modal = true);
|
||||
const TranslatableString& message, const ManualPageID& helpUrl,
|
||||
const wxString& log, const bool modal);
|
||||
|
||||
~ErrorReportDialog();
|
||||
|
||||
@ -50,7 +50,7 @@ private:
|
||||
|
||||
std::unique_ptr<audacity::sentry::Report> mReport;
|
||||
|
||||
wxString mHelpUrl;
|
||||
ManualPageID mHelpUrl;
|
||||
|
||||
wxTextCtrl* mCommentsControl;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user