summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-12-19 14:50:42 +0100
committerCarl Hetherington <cth@carlh.net>2023-12-19 14:50:42 +0100
commit2ecb69fa967dacce23336cab1c526d133ea33321 (patch)
tree533cdba0ecad5d372a85df78da7879b45e788e75
parentb0dc4c3aecc195b57ec2f1eafaaa68a9f4116e4e (diff)
Fix bits missed from previous commit.
-rw-r--r--src/wx/kdm_output_panel.cc9
-rw-r--r--src/wx/kdm_output_panel.h4
2 files changed, 13 insertions, 0 deletions
diff --git a/src/wx/kdm_output_panel.cc b/src/wx/kdm_output_panel.cc
index e7374cff9..777966366 100644
--- a/src/wx/kdm_output_panel.cc
+++ b/src/wx/kdm_output_panel.cc
@@ -172,6 +172,7 @@ KDMOutputPanel::write_to_changed ()
{
Config::instance()->set_write_kdms_to_disk(_write_to->GetValue());
setup_sensitivity ();
+ MethodChanged();
}
@@ -180,6 +181,7 @@ KDMOutputPanel::email_changed ()
{
Config::instance()->set_email_kdms(_email->GetValue());
setup_sensitivity ();
+ MethodChanged();
}
@@ -348,3 +350,10 @@ KDMOutputPanel::add_email_addresses_clicked ()
}
}
+
+bool
+KDMOutputPanel::method_selected() const
+{
+ return _write_to->GetValue() || _email->GetValue();
+}
+
diff --git a/src/wx/kdm_output_panel.h b/src/wx/kdm_output_panel.h
index 040815392..db898b44b 100644
--- a/src/wx/kdm_output_panel.h
+++ b/src/wx/kdm_output_panel.h
@@ -63,6 +63,10 @@ public:
std::function<bool (boost::filesystem::path)> confirm_overwrite
);
+ bool method_selected() const;
+
+ boost::signals2::signal<void ()> MethodChanged;
+
private:
void kdm_write_type_changed ();
void advanced_clicked ();