From 133bfd4b4fc39e5c45c767041a9e35f8d011e38e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 18 Nov 2011 16:48:01 +0000 Subject: [PATCH] don't call end_edit() when losing focus from an audio clock if we were not editing git-svn-id: svn://localhost/ardour2/branches/3.0@10677 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/audio_clock.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index b5450a2e86..1f3ac61fb5 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -1225,7 +1225,9 @@ AudioClock::on_focus_out_event (GdkEventFocus* ev) { bool ret = CairoWidget::on_focus_out_event (ev); - end_edit (false); + if (editing) { + end_edit (false); + } return ret; }