diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-01 18:46:20 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-01 18:46:20 +0000 |
commit | f294d62187564d6f61b4c3a4d1b22dcd86b83701 (patch) | |
tree | 6158160a948fa9dd2cef6c53406007aa33825a2e /gtk2_ardour/editor_routes.cc | |
parent | e5c69387c0cdfae2f5853c941198490b2b95c80e (diff) |
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
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r-- | gtk2_ardour/editor_routes.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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. */ |