mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Fix source list selection
Retain selection when showing context-menu.
This commit is contained in:
parent
bc1c3e5c21
commit
1aae553dae
1 changed files with 1 additions and 15 deletions
|
|
@ -733,24 +733,10 @@ EditorSources::key_press (GdkEventKey* ev)
|
||||||
bool
|
bool
|
||||||
EditorSources::button_press (GdkEventButton *ev)
|
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)) {
|
if (Keyboard::is_context_menu_event (ev)) {
|
||||||
show_context_menu (ev->button, ev->time);
|
show_context_menu (ev->button, ev->time);
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue