summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/time_axis_view.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc
index 1e0b95d5a1..248ec04268 100644
--- a/gtk2_ardour/time_axis_view.cc
+++ b/gtk2_ardour/time_axis_view.cc
@@ -781,6 +781,10 @@ TimeAxisView::popup_display_menu (guint32 when)
void
TimeAxisView::set_selected (bool yn)
{
+ if (can_edit_name() && name_entry.get_visible()) {
+ end_name_edit (RESPONSE_CANCEL);
+ }
+
if (yn == _selected) {
return;
}