13
0

Remove Gtk::manage from the popup region menu item so that it doesn't get destroyed when its parent menu is cleared (patch from Lincoln). Fixes #3753.

git-svn-id: svn://localhost/ardour2/branches/3.0@8724 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-02-06 17:17:59 +00:00
parent 9d70b725a3
commit a7c26a87e3

View File

@ -1722,7 +1722,7 @@ Editor::add_region_context_items (Menu_Helpers::MenuList& edit_items, bool multi
}
if (_popup_region_menu_item == 0) {
_popup_region_menu_item = manage (new MenuItem (menu_item_name));
_popup_region_menu_item = new MenuItem (menu_item_name);
_popup_region_menu_item->set_submenu (*dynamic_cast<Menu*> (ActionManager::get_widget (X_("/PopupRegionMenu"))));
_popup_region_menu_item->show ();
} else {