mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
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