mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Set up _old_follow_playhead correctly in all cases; should fix #4603.
git-svn-id: svn://localhost/ardour2/branches/3.0@12624 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a766fe1fd9
commit
ee8634cd87
1 changed files with 2 additions and 2 deletions
|
|
@ -310,6 +310,8 @@ EditorSummary::centre_on_click (GdkEventButton* ev)
|
||||||
bool
|
bool
|
||||||
EditorSummary::on_button_press_event (GdkEventButton* ev)
|
EditorSummary::on_button_press_event (GdkEventButton* ev)
|
||||||
{
|
{
|
||||||
|
_old_follow_playhead = _editor->follow_playhead ();
|
||||||
|
|
||||||
if (ev->button == 1) {
|
if (ev->button == 1) {
|
||||||
|
|
||||||
pair<double, double> xr;
|
pair<double, double> xr;
|
||||||
|
|
@ -331,7 +333,6 @@ EditorSummary::on_button_press_event (GdkEventButton* ev)
|
||||||
_zoom_position = get_position (ev->x, ev->y);
|
_zoom_position = get_position (ev->x, ev->y);
|
||||||
_zoom_dragging = true;
|
_zoom_dragging = true;
|
||||||
_editor->_dragging_playhead = true;
|
_editor->_dragging_playhead = true;
|
||||||
_old_follow_playhead = _editor->follow_playhead ();
|
|
||||||
_editor->set_follow_playhead (false);
|
_editor->set_follow_playhead (false);
|
||||||
|
|
||||||
if (suspending_editor_updates ()) {
|
if (suspending_editor_updates ()) {
|
||||||
|
|
@ -361,7 +362,6 @@ EditorSummary::on_button_press_event (GdkEventButton* ev)
|
||||||
_move_dragging = true;
|
_move_dragging = true;
|
||||||
_moved = false;
|
_moved = false;
|
||||||
_editor->_dragging_playhead = true;
|
_editor->_dragging_playhead = true;
|
||||||
_old_follow_playhead = _editor->follow_playhead ();
|
|
||||||
_editor->set_follow_playhead (false);
|
_editor->set_follow_playhead (false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue