Fix source list selection

Retain selection when showing context-menu.
This commit is contained in:
Robin Gareus 2020-03-31 21:00:45 +02:00
parent bc1c3e5c21
commit 1aae553dae
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 15 deletions

View File

@ -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;
}