diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-27 13:41:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-27 13:41:49 +0100 |
| commit | 7aab34abcab28ca38a5354dec075b56d430e82db (patch) | |
| tree | a7a02355bb4ea08cdf652ccb89b4ee6d1247b5dd /src/wx/job_view.cc | |
| parent | 526829ad670c19d5466555890d8afe8d7f744834 (diff) | |
More stack-allocated Dialog objects.
Diffstat (limited to 'src/wx/job_view.cc')
| -rw-r--r-- | src/wx/job_view.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc index 8dbe87652..b98555e8a 100644 --- a/src/wx/job_view.cc +++ b/src/wx/job_view.cc @@ -156,9 +156,8 @@ JobView::finished () } if (_job->message()) { - auto d = new MessageDialog (_parent, std_to_wx(_job->name()), std_to_wx(_job->message().get())); - d->ShowModal (); - d->Destroy (); + MessageDialog dialog(_parent, std_to_wx(_job->name()), std_to_wx(_job->message().get())); + dialog.ShowModal(); } if (_job->enable_notify() && _notify->GetValue()) { |
