From 2cd8a5a752b19e2d529e0b52f3fba6824c5558e2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 1 Jan 2011 20:08:26 +0000 Subject: [PATCH] Repeat of recent fix to EditorRoutes to improve behaviour when editing names. git-svn-id: svn://localhost/ardour2/branches/3.0@8407 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_regions.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_regions.cc b/gtk2_ardour/editor_regions.cc index 4647104753..357bb7295e 100644 --- a/gtk2_ardour/editor_regions.cc +++ b/gtk2_ardour/editor_regions.cc @@ -206,6 +206,10 @@ EditorRegions::focus_out (GdkEventFocus*) bool EditorRegions::enter_notify (GdkEventCrossing* ev) { + if (name_editable) { + return true; + } + /* arm counter so that ::selection_filter() will deny selecting anything for the next two attempts to change selection status. */ @@ -222,7 +226,6 @@ EditorRegions::leave_notify (GdkEventCrossing*) old_focus = 0; } - name_editable = 0; Keyboard::magic_widget_drop_focus (); return false; }