13
0

Mixer sidebar: show group context menu on right-click only

This commit is contained in:
Robin Gareus 2017-03-08 16:22:17 +01:00
parent a3a61c9c74
commit a67008a5cb

View File

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