summaryrefslogtreecommitdiff
path: root/gtk2_ardour/group_tabs.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/group_tabs.cc')
-rw-r--r--gtk2_ardour/group_tabs.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk2_ardour/group_tabs.cc b/gtk2_ardour/group_tabs.cc
index 433bd5fe2a..d9c34ed675 100644
--- a/gtk2_ardour/group_tabs.cc
+++ b/gtk2_ardour/group_tabs.cc
@@ -64,11 +64,8 @@ GroupTabs::on_button_press_event (GdkEventButton* ev)
Tab* prev;
Tab* next;
Tab* t = click_to_tab (p, &prev, &next);
- if (t == 0) {
- return false;
- }
- if (ev->button == 1) {
+ if (ev->button == 1 && t) {
_dragging = t;
_drag_moved = false;
@@ -87,7 +84,8 @@ GroupTabs::on_button_press_event (GdkEventButton* ev)
} else if (ev->button == 3) {
- get_menu(t->group)->popup (ev->button, ev->time);
+ RouteGroup* g = t ? t->group : 0;
+ get_menu(g)->popup (ev->button, ev->time);
}