From f294d62187564d6f61b4c3a4d1b22dcd86b83701 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 1 Jan 2011 18:46:20 +0000 Subject: [PATCH] Don't grab focus on enter if we are editing a name. Otherwise when the mouse pointer leaves the editing widget and re-enters the route list, the edit is aborted. Should fix #2920. git-svn-id: svn://localhost/ardour2/branches/3.0@8405 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_routes.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index 2953e33dba..0d34dc4375 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -251,6 +251,10 @@ EditorRoutes::focus_out (GdkEventFocus*) bool EditorRoutes::enter_notify (GdkEventCrossing*) { + if (name_editable) { + return true; + } + /* arm counter so that ::selection_filter() will deny selecting anything for the next two attempts to change selection status. */