Fix #6774, Moving start/end markers doesn't set Session as modified/dirty
authorTim Mayberry <mojofunk@gmail.com>
Fri, 9 Sep 2016 12:04:26 +0000 (22:04 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Sun, 11 Sep 2016 11:24:56 +0000 (21:24 +1000)
If a Session is saved and then the start or end session markers are moved,
closing the Session will not result in "Unsaved Session" dialog being presented
even though the Session has been modified. This change sets the Session as
modified when either the Session start or end markers are modified.

libs/ardour/session.cc

index 9fd3539dae045990b31957393a49b92465e95566..adaa3ccc84819ce09719291b517fb3ea8b45f6de 100644 (file)
@@ -6367,6 +6367,7 @@ Session::start_time_changed (framepos_t old)
        if (l && l->start() == old) {
                l->set_start (s->start(), true);
        }
+       set_dirty ();
 }
 
 void
@@ -6386,6 +6387,7 @@ Session::end_time_changed (framepos_t old)
        if (l && l->end() == old) {
                l->set_end (s->end(), true);
        }
+       set_dirty ();
 }
 
 std::vector<std::string>