summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-01-05 14:57:01 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-01-05 14:57:01 +0000
commit27eb926d3fe86517fb83af19ae5c3acc737a677b (patch)
tree8468e564b25127585facf3ee16a4f4e408af088f /gtk2_ardour/midi_time_axis.cc
parent6d3dfd0ded3512377e8a3b112bac3251db079667 (diff)
fix some issues with context menu management
git-svn-id: svn://localhost/ardour2/branches/3.0@6456 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index 3b759867c8..4362b53d6a 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -322,9 +322,7 @@ MidiTimeAxisView::build_def_channel_menu ()
{
using namespace Menu_Helpers;
- if (default_channel_menu == 0) {
- default_channel_menu = manage (new Menu ());
- }
+ default_channel_menu = manage (new Menu ());
uint8_t defchn = midi_track()->default_channel();
MenuList& def_channel_items = default_channel_menu->items();