projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More stack-allocated Dialog objects.
[dcpomatic.git]
/
src
/
wx
/
job_view.cc
diff --git
a/src/wx/job_view.cc
b/src/wx/job_view.cc
index 8dbe8765210de29e34f3ed9aa98274ba513e95ed..b98555e8a2b71f519c71c99a7e9a7f12801aa1df 100644
(file)
--- a/
src/wx/job_view.cc
+++ b/
src/wx/job_view.cc
@@
-156,9
+156,8
@@
JobView::finished ()
}
if (_job->message()) {
}
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()) {
}
if (_job->enable_notify() && _notify->GetValue()) {