Disable follow-playhead during drags. Fixes #3647.

git-svn-id: svn://localhost/ardour2/branches/3.0@8444 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-01-05 02:28:28 +00:00
parent d13cb3bd40
commit 85acf35337
5 changed files with 17 additions and 4 deletions

View file

@ -3637,11 +3637,14 @@ Editor::toggle_follow_playhead ()
}
}
/** @param yn true to follow playhead, otherwise false.
* @param catch_up true to reset the editor view to show the playhead (if yn == true), otherwise false.
*/
void
Editor::set_follow_playhead (bool yn)
Editor::set_follow_playhead (bool yn, bool catch_up)
{
if (_follow_playhead != yn) {
if ((_follow_playhead = yn) == true) {
if ((_follow_playhead = yn) == true && catch_up) {
/* catch up */
reset_x_origin_to_follow_playhead ();
}