summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_group_tabs.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-06-23 23:05:14 +0000
committerCarl Hetherington <carl@carlh.net>2009-06-23 23:05:14 +0000
commitacaf05db1dd1dee9bcd7d1be4258c00837b90267 (patch)
tree0821c3cff1e76b6161d2b5fa6053d9e8732d096f /gtk2_ardour/mixer_group_tabs.cc
parent474bf32ae30b87dd7f9eb1b483464097209fb959 (diff)
Update mixer group tabs on strip width change. Don't display the mixer group tab menu if there's not a group involved.
git-svn-id: svn://localhost/ardour2/branches/3.0@5265 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_group_tabs.cc')
-rw-r--r--gtk2_ardour/mixer_group_tabs.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_group_tabs.cc b/gtk2_ardour/mixer_group_tabs.cc
index 621f57c838..a261fc8ec9 100644
--- a/gtk2_ardour/mixer_group_tabs.cc
+++ b/gtk2_ardour/mixer_group_tabs.cc
@@ -162,6 +162,10 @@ MixerGroupTabs::reflect_tabs (list<Tab> const & tabs)
Gtk::Menu*
MixerGroupTabs::get_menu (RouteGroup* g)
{
+ if (g == 0) {
+ return 0;
+ }
+
using namespace Menu_Helpers;
delete _menu;