diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-05 00:03:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-05 00:03:09 +0200 |
| commit | c3802179cb922adc58232dcd5a29fc3962494293 (patch) | |
| tree | 67f543e1c509f533dbd341f39cc5d0e2105e96d1 /src/wx/dcp_panel.cc | |
| parent | 8833ea90cf818e87da7a8f31698a04da54987521 (diff) | |
Add a Cancel button to the LanguageTagDialog.
Diffstat (limited to 'src/wx/dcp_panel.cc')
| -rw-r--r-- | src/wx/dcp_panel.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc index 8a3e57304..895aed9c9 100644 --- a/src/wx/dcp_panel.cc +++ b/src/wx/dcp_panel.cc @@ -1039,8 +1039,9 @@ DCPPanel::edit_audio_language_clicked () { DCPOMATIC_ASSERT (_film->audio_language()); auto d = new LanguageTagDialog (_panel, *_film->audio_language()); - d->ShowModal (); - _film->set_audio_language(d->get()); + if (d->ShowModal() == wxID_OK) { + _film->set_audio_language(d->get()); + } d->Destroy (); } |
