summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-09-11 13:21:16 +0200
committerRobin Gareus <robin@gareus.org>2015-09-11 13:21:16 +0200
commit6048d2cd2319976c039843e3981013e42350dc3a (patch)
tree019a11b32c59ce28aa22a7fe2854318ecfc34a13 /gtk2_ardour/option_editor.cc
parent9fcc48d140ffcb2d22ca92952047b31337ee9b1c (diff)
Have GUI Option reflect current state (in case toggle fails)
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r--gtk2_ardour/option_editor.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc
index 54424b5ca3..59e10f058b 100644
--- a/gtk2_ardour/option_editor.cc
+++ b/gtk2_ardour/option_editor.cc
@@ -140,7 +140,9 @@ BoolOption::set_state_from_config ()
void
BoolOption::toggled ()
{
- _set (_button->get_active ());
+ if (!_set (_button->get_active ())) {
+ _button->set_active (_get ());
+ }
}
RouteDisplayBoolOption::RouteDisplayBoolOption (string const & i, string const & n, sigc::slot<bool> g, sigc::slot<bool, bool> s)