diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-31 21:00:45 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-31 21:00:45 +0200 |
commit | 1aae553daec91a777656bb2cef687556c79b44c6 (patch) | |
tree | 81aa2a678ed0769f583880e4850781aac96d93f8 /gtk2_ardour/editor_sources.cc | |
parent | bc1c3e5c21f6dd1a8fea7e9da284d1a40ba15721 (diff) |
Fix source list selection
Retain selection when showing context-menu.
Diffstat (limited to 'gtk2_ardour/editor_sources.cc')
-rw-r--r-- | gtk2_ardour/editor_sources.cc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/gtk2_ardour/editor_sources.cc b/gtk2_ardour/editor_sources.cc index 5ffd23a203..5150189a6b 100644 --- a/gtk2_ardour/editor_sources.cc +++ b/gtk2_ardour/editor_sources.cc @@ -733,24 +733,10 @@ EditorSources::key_press (GdkEventKey* ev) bool EditorSources::button_press (GdkEventButton *ev) { - boost::shared_ptr<ARDOUR::Region> region; - TreeIter iter; - TreeModel::Path path; - TreeViewColumn* column; - int cellx; - int celly; - - if (_display.get_path_at_pos ((int)ev->x, (int)ev->y, path, column, cellx, celly)) { - if ((iter = _model->get_iter (path))) { - region = (*iter)[_columns.region]; - } - } - if (Keyboard::is_context_menu_event (ev)) { show_context_menu (ev->button, ev->time); - return false; + return true; } - return false; } |