summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_dialogs.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-16 16:07:59 +0100
committerRobin Gareus <robin@gareus.org>2017-02-16 16:07:59 +0100
commit9c10fc5b5c438e66a2f780920e684ea9abeb49a0 (patch)
treec886996c1653d03a953c20d49d998637848a95d0 /gtk2_ardour/ardour_ui_dialogs.cc
parenta31e70a7d577cf690c4e7689bba61b747768c4dc (diff)
Properly update main window-title.
This fixes an issue with Session > Snapshot & switch, not updating the widow title to the new snapshot (and probably some other edge cases where it was possible for a detached editor and main window to have different titles). The main UI now updates the window-title like the Editor on StateSaved. (it may lead to dup updates with DirtyChanged, c'est la vie)
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r--gtk2_ardour/ardour_ui_dialogs.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc
index 561fac9c15..78f6d14714 100644
--- a/gtk2_ardour/ardour_ui_dialogs.cc
+++ b/gtk2_ardour/ardour_ui_dialogs.cc
@@ -159,6 +159,7 @@ ARDOUR_UI::set_session (Session *s)
blink_connection = Timers::blink_connect (sigc::mem_fun(*this, &ARDOUR_UI::blink_handler));
_session->SaveSessionRequested.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::save_session_at_its_request, this, _1), gui_context());
+ _session->StateSaved.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::update_title, this), gui_context());
_session->RecordStateChanged.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::record_state_changed, this), gui_context());
_session->StepEditStatusChange.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::step_edit_status_change, this, _1), gui_context());
_session->TransportStateChange.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::map_transport_state, this), gui_context());