Mixer sidebar: show group context menu on right-click only
This commit is contained in:
parent
a3a61c9c74
commit
a67008a5cb
@ -1689,13 +1689,17 @@ Mixer_UI::group_display_button_press (GdkEventButton* ev)
|
||||
int celly;
|
||||
|
||||
if (!group_display.get_path_at_pos ((int)ev->x, (int)ev->y, path, column, cellx, celly)) {
|
||||
_group_tabs->get_menu(0)->popup (1, ev->time);
|
||||
if (ev->button == 3) {
|
||||
_group_tabs->get_menu(0)->popup (ev->button, ev->time);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
TreeIter iter = group_model->get_iter (path);
|
||||
if (!iter) {
|
||||
_group_tabs->get_menu(0)->popup (1, ev->time);
|
||||
if (ev->button == 3) {
|
||||
_group_tabs->get_menu(0)->popup (ev->button, ev->time);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user