Don't crash if get_action() is called before the UI manager is created. Sort-of fix for #3571.
git-svn-id: svn://localhost/ardour2/branches/3.0@8199 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
fdc9e200be
commit
99c2d589d1
@ -237,6 +237,10 @@ ActionManager::get_action (const char* group_name, const char* action_name)
|
||||
gtkmm2.6, so we fall back to the C level.
|
||||
*/
|
||||
|
||||
if (ui_manager == 0) {
|
||||
return RefPtr<Action> ();
|
||||
}
|
||||
|
||||
GList* list = gtk_ui_manager_get_action_groups (ui_manager->gobj());
|
||||
GList* node;
|
||||
RefPtr<Action> act;
|
||||
|
Loading…
Reference in New Issue
Block a user