summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_dialogs.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-01-08 20:51:26 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-01-08 20:51:26 +0000
commitca49f7cba731bd443c4a62184c8dec892b4ce5e7 (patch)
tree5c10cc5b82b1e22a6a205c4843b1dc6343906d0a /gtk2_ardour/ardour_ui_dialogs.cc
parent57bafcd1f4277ba9805bfb4ed05b8eaffaa7a5ce (diff)
fix audio clock restore, provide XMLNode::property (string) and speed up the property methods by not scanning the map twice. sorry about the recompile
git-svn-id: svn://localhost/ardour2/trunk@1286 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r--gtk2_ardour/ardour_ui_dialogs.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc
index a9a61176a9..140ee649ea 100644
--- a/gtk2_ardour/ardour_ui_dialogs.cc
+++ b/gtk2_ardour/ardour_ui_dialogs.cc
@@ -125,6 +125,13 @@ ARDOUR_UI::connect_to_session (Session *s)
connect_dependents_to_session (s);
+ /* listen to clock mode changes. don't do this earlier because otherwise as the clocks
+ restore their modes or are explicitly set, we will cause the "new" mode to be saved
+ back to the session XML ("extra") state.
+ */
+
+ AudioClock::ModeChanged.connect (mem_fun (*this, &ARDOUR_UI::store_clock_modes));
+
start_clocking ();
start_blinking ();