projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
db845a2
)
Make sure that crop preview rectangle is properly hidden when we close the auto crop...
author
Carl Hetherington
<cth@carlh.net>
Sun, 1 May 2022 17:35:26 +0000
(19:35 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 1 May 2022 17:35:26 +0000
(19:35 +0200)
src/wx/content_menu.cc
patch
|
blob
|
history
diff --git
a/src/wx/content_menu.cc
b/src/wx/content_menu.cc
index ed515f6c8041ee1fd678330a9c53a349791d6c6a..93bcc0a6d4042f05a4980e96f1212ea49ebfc27f 100644
(file)
--- a/
src/wx/content_menu.cc
+++ b/
src/wx/content_menu.cc
@@
-602,13
+602,13
@@
ContentMenu::auto_crop ()
/* Handle the user closing the dialog (with OK or cancel) */
_auto_crop_dialog->Bind (wxEVT_BUTTON, [this, viewer](wxCommandEvent& ev) {
/* 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 ();
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 */
});
/* Update the view when something in the dialog is changed */