summaryrefslogtreecommitdiff
path: root/src/wx/dcp_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-05 00:03:09 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-05 00:03:09 +0200
commitc3802179cb922adc58232dcd5a29fc3962494293 (patch)
tree67f543e1c509f533dbd341f39cc5d0e2105e96d1 /src/wx/dcp_panel.cc
parent8833ea90cf818e87da7a8f31698a04da54987521 (diff)
Add a Cancel button to the LanguageTagDialog.
Diffstat (limited to 'src/wx/dcp_panel.cc')
-rw-r--r--src/wx/dcp_panel.cc5
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 ();
}