mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-07 15:49:42 +02:00
Fixes crash in ErrorReportDialog
This commit is contained in:
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user