diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-01 19:35:26 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-01 23:46:23 +0200 |
| commit | 14954e56e43a70b368c913fd36eff178c7de1b84 (patch) | |
| tree | 111e33f5b36419b7a299731691d56baf8fbb16f9 /src/wx/content_menu.cc | |
| parent | ccaf5a307f392e5910e4c4df650db33e27985601 (diff) | |
Make sure that crop preview rectangle is properly hidden when we close the auto crop dialog.main-old
Diffstat (limited to 'src/wx/content_menu.cc')
| -rw-r--r-- | src/wx/content_menu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc index bd4ee613b..dbfbbd82b 100644 --- a/src/wx/content_menu.cc +++ b/src/wx/content_menu.cc @@ -558,13 +558,13 @@ ContentMenu::auto_crop () /* Handle the user closing the dialog (with OK or cancel) */ _auto_crop_dialog->Bind (wxEVT_BUTTON, [this, viewer](wxCommandEvent& ev) { + _auto_crop_config_connection.disconnect (); + _auto_crop_viewer_connection.disconnect (); if (ev.GetId() == wxID_OK) { _content.front()->video->set_crop(_auto_crop_dialog->get()); } _auto_crop_dialog->Show (false); viewer->unset_crop_guess (); - _auto_crop_config_connection.disconnect (); - _auto_crop_viewer_connection.disconnect (); }); /* Update the view when something in the dialog is changed */ |
