Fix some segfaults on right-clicking a region.

git-svn-id: svn://localhost/ardour2/branches/3.0@7439 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-07-19 01:43:11 +00:00
parent aecbb04775
commit 058785c718
1 changed files with 6 additions and 0 deletions

View File

@ -1507,6 +1507,12 @@ Editor::build_track_region_context_menu (nframes64_t frame)
MenuList& edit_items = track_region_context_menu.items();
edit_items.clear();
/* we've just cleared the track region context menu, so the menu that these
two items were on will have disappeared; stop them dangling.
*/
region_edit_menu_split_item = 0;
region_edit_menu_split_multichannel_item = 0;
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (clicked_axisview);
if (rtv) {