Fix DKDM dialog "make" button sensitivity.
authorCarl Hetherington <cth@carlh.net>
Wed, 26 Mar 2025 23:27:57 +0000 (00:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 26 Mar 2025 23:30:25 +0000 (00:30 +0100)
src/wx/dkdm_dialog.cc

index 8444418c68f07f89159e48ea6977a2e0870ae100..050651c153d40fe8b41064d52c720cea1427dd6f 100644 (file)
@@ -113,6 +113,7 @@ DKDMDialog::DKDMDialog (wxWindow* parent, shared_ptr<const Film> film)
        /* Bind */
 
        _recipients->RecipientsChanged.connect (boost::bind(&DKDMDialog::setup_sensitivity, this));
+       _output->MethodChanged.connect(boost::bind(&DKDMDialog::setup_sensitivity, this));
        _make->Bind (wxEVT_BUTTON, boost::bind(&DKDMDialog::make_clicked, this));
        _cpl->Changed.connect(boost::bind(&DKDMDialog::setup_sensitivity, this));
 
@@ -129,7 +130,7 @@ DKDMDialog::setup_sensitivity ()
 {
        _recipients->setup_sensitivity ();
        _output->setup_sensitivity ();
-       _make->Enable (!_recipients->recipients().empty() && _cpl->has_selected());
+       _make->Enable(!_recipients->recipients().empty() && _cpl->has_selected() && _output->method_selected());
 }