diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-30 10:34:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-30 10:34:24 +0100 |
| commit | 771ba62be4e59439bf1b8dd622502e51f6444145 (patch) | |
| tree | 0ffcaac48d1e4a547b47b1c2f25223c962ce8dd6 /src/wx/video_panel.cc | |
| parent | 47dce56d3283c866c4057d0acb192f7942b53a9d (diff) | |
Add Cancel button to custom colour conversion dialogue (#880).
Diffstat (limited to 'src/wx/video_panel.cc')
| -rw-r--r-- | src/wx/video_panel.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc index 0a8feadc8..8a8dbd181 100644 --- a/src/wx/video_panel.cc +++ b/src/wx/video_panel.cc @@ -414,9 +414,13 @@ VideoPanel::edit_colour_conversion_clicked () } ContentColourConversionDialog* d = new ContentColourConversionDialog (this, vc.front()->video->yuv ()); - d->set (vc.front()->video->colour_conversion().get_value_or (PresetColourConversion::all().front ().conversion)); - d->ShowModal (); - vc.front()->video->set_colour_conversion (d->get ()); + d->set (vc.front()->video->colour_conversion().get_value_or (PresetColourConversion::all().front().conversion)); + if (d->ShowModal() == wxID_OK) { + vc.front()->video->set_colour_conversion (d->get ()); + } else { + /* Reset the colour conversion choice */ + film_content_changed (VideoContentProperty::COLOUR_CONVERSION); + } d->Destroy (); } |
