Commit be2609a2 authored by Benjamin Otte's avatar Benjamin Otte

inspector: Handle case where there's no default application

parent 5bf009a2
Pipeline #31309 passed with stages
in 24 minutes and 58 seconds
......@@ -1113,11 +1113,14 @@ create_root_model (void)
GtkFilterListModel *filter;
GtkFlattenListModel *flatten;
GListStore *list, *special;
gpointer item;
list = g_list_store_new (G_TYPE_LIST_MODEL);
special = g_list_store_new (G_TYPE_OBJECT);
g_list_store_append (special, g_application_get_default ());
item = g_application_get_default ();
if (item)
g_list_store_append (special, item);
g_list_store_append (special, gtk_settings_get_default ());
g_list_store_append (list, special);
g_object_unref (special);
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