1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-05 22:21:15 +01:00

Fixes crash in ErrorReportDialog

This commit is contained in:
Dmitry Vedenko
2021-07-22 12:13:58 +03:00
committed by Dmitry Vedenko
parent 0ee9cbd83e
commit b2d9adf6a7
2 changed files with 3 additions and 2 deletions

View File

@@ -199,7 +199,8 @@ void ErrorReportDialog::OnSend(wxCommandEvent& event)
{
Disable();
mReport->AddUserComment(audacity::ToUTF8(mCommentsControl->GetValue()));
if (mCommentsControl != nullptr)
mReport->AddUserComment(audacity::ToUTF8(mCommentsControl->GetValue()));
mReport->Send(
[this](int code, std::string body) {

View File

@@ -52,7 +52,7 @@ private:
ManualPageID mHelpUrl;
wxTextCtrl* mCommentsControl;
wxTextCtrl* mCommentsControl { nullptr };
bool mIsModal;