mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 07:30:09 +00:00
inspector: Avoid a crash
An unset action-name should not cause us to crash.
This commit is contained in:
parent
1e63d94a06
commit
763f0a37c1
@ -1222,6 +1222,9 @@ find_action_owner (GtkActionable *actionable)
|
||||
GActionGroup *group;
|
||||
|
||||
full_name = gtk_actionable_get_action_name (actionable);
|
||||
if (!full_name)
|
||||
return NULL;
|
||||
|
||||
dot = strchr (full_name, '.');
|
||||
prefix = g_strndup (full_name, dot - full_name);
|
||||
name = dot + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user