diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-09 22:23:32 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-09 22:23:32 +0000 |
commit | 69c9e2296c1436e3959b6702110c03738d2a5549 (patch) | |
tree | 29e463916e001d7b0f1a1a820cdc1424f59a1361 /gtk2_ardour/location_ui.cc | |
parent | 78986385e17b82a6704c8792fb21a42cd86add9a (diff) |
Fix up state save/load of location lock/glue settings.
git-svn-id: svn://localhost/ardour2/branches/3.0@7579 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/location_ui.cc')
-rw-r--r-- | gtk2_ardour/location_ui.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc index ac7b227e5b..d2c1a1931f 100644 --- a/gtk2_ardour/location_ui.cc +++ b/gtk2_ardour/location_ui.cc @@ -193,7 +193,11 @@ LocationEditRow::set_location (Location *loc) location = loc; - if (!location) return; + if (!location) { + return; + } + + ++i_am_the_modifier; if (!hide_check_button.get_parent()) { item_table.attach (hide_check_button, 5, 6, 0, 1, FILL, Gtk::FILL, 4, 0); @@ -293,6 +297,8 @@ LocationEditRow::set_location (Location *loc) end_clock.set_sensitive (!location->locked()); length_clock.set_sensitive (!location->locked()); + --i_am_the_modifier; + location->start_changed.connect (connections, invalidator (*this), ui_bind (&LocationEditRow::start_changed, this, _1), gui_context()); location->end_changed.connect (connections, invalidator (*this), ui_bind (&LocationEditRow::end_changed, this, _1), gui_context()); location->name_changed.connect (connections, invalidator (*this), ui_bind (&LocationEditRow::name_changed, this, _1), gui_context()); |