Do not access an invalid ActionGroup. Closes #624362.

This commit is contained in:
Jonh Wendell 2010-07-14 14:45:42 -03:00
parent b35c2e695a
commit 5c2966dda3

View File

@ -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);