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:
committed by
Dmitry Vedenko
parent
0ee9cbd83e
commit
b2d9adf6a7
@@ -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) {
|
||||
|
||||
@@ -52,7 +52,7 @@ private:
|
||||
|
||||
ManualPageID mHelpUrl;
|
||||
|
||||
wxTextCtrl* mCommentsControl;
|
||||
wxTextCtrl* mCommentsControl { nullptr };
|
||||
|
||||
bool mIsModal;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user