forked from AuroraMiddleware/gtk
Do not access an invalid ActionGroup. Closes #624362.
This commit is contained in:
parent
b35c2e695a
commit
5c2966dda3
@ -165,6 +165,9 @@ gtk_application_default_action (GtkApplication *application,
|
||||
GtkApplicationPrivate *priv = application->priv;
|
||||
GtkAction *action;
|
||||
|
||||
if (!priv->main_actions)
|
||||
return;
|
||||
|
||||
action = gtk_action_group_get_action (priv->main_actions, action_name);
|
||||
if (action)
|
||||
gtk_action_activate (action);
|
||||
|
Loading…
Reference in New Issue
Block a user