Commit 909e82a2 authored by Tristan Van Berkom's avatar Tristan Van Berkom

GtkRecentChooserMenu: avoid accessing a NULL action

When the GtkActivatable sets the related action, the activatable
properties are sync'ed. In this case the null check is important
to avoid updating from a NULL action.
parent fbb94477
......@@ -1202,6 +1202,9 @@ static void
gtk_recent_chooser_sync_action_properties (GtkActivatable *activatable,
GtkAction *action)
if (!action)
gtk_widget_set_sensitive (GTK_WIDGET (activatable), gtk_action_is_sensitive (action));
_gtk_recent_chooser_sync_action_properties (activatable, action);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment