summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-11-25 11:34:19 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-11-25 11:34:19 +0000
commit4fa5006ae72eaf59914819abfc8892baa7430435 (patch)
treeee646c9cd8812c61cbf528fd5cda8bacab9a9340 /gtk2_ardour/route_time_axis.cc
parentba3a704d7b4e52a3d9f1ef2721291ad1f3201764 (diff)
a slightly better fix than colinf's for the hang-when-resizing-while-renaming issue. at least, i think so
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4249 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index 588ba5601b..aeb30b8a61 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -758,6 +758,18 @@ RouteTimeAxisView::set_height (uint32_t h)
} else {
hide_meter ();
+
+ /* don't allow name_entry to be hidden while
+ it has focus, otherwise the GUI becomes unusable.
+ */
+
+ if (name_entry.has_focus()) {
+ if (name_entry.get_text() != _route->name()) {
+ name_entry_changed ();
+ }
+ controls_ebox.grab_focus ();
+ }
+
hide_name_entry ();
show_name_label ();