summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.h
diff options
context:
space:
mode:
authorJulien ROGER <gulien.roger@gmail.com>2016-02-10 23:52:03 +0100
committerTim Mayberry <mojofunk@gmail.com>2016-02-13 12:30:31 +1000
commit1fbe4253aafc8821f5d9db0d7e99fcb1712c4cc5 (patch)
tree408a43f1770ae7f5bb2284cd7e01c1f7b39a46c7 /gtk2_ardour/time_axis_view.h
parent108528b63df447fe64ff443ee988335d02e9a98a (diff)
Fix 6609: Right-click in active track name box crashes
When right-clicking in the text entry, popup menu grabs focus. Consequently, the "focus out" handler is called, destroys the text entry and replaces it by the label name of the track. When menu pops up, it tries to access to a widget no longer available.
Diffstat (limited to 'gtk2_ardour/time_axis_view.h')
-rw-r--r--gtk2_ardour/time_axis_view.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h
index 1eb193590c..4be23803ef 100644
--- a/gtk2_ardour/time_axis_view.h
+++ b/gtk2_ardour/time_axis_view.h
@@ -257,9 +257,11 @@ class TimeAxisView : public virtual AxisView
bool name_entry_key_release (GdkEventKey *ev);
bool name_entry_key_press (GdkEventKey *ev);
bool name_entry_focus_out (GdkEventFocus *ev);
+ void name_entry_populate_popup (Gtk::Menu *);
Gtk::Entry* name_entry;
bool ending_name_edit;
+ bool by_popup_menu;
void begin_name_edit ();
void end_name_edit (int);