Commit c24efca6 authored by William Jon McCann's avatar William Jon McCann

Don't inspect a null default app

https://bugzilla.gnome.org/show_bug.cgi?id=682372
parent 423675f1
......@@ -228,13 +228,13 @@ application_selected_cb (GtkAppChooserWidget *widget,
GAppInfo *default_app;
default_app = g_app_info_get_default_for_type (chooser->details->content_type, FALSE);
gtk_widget_set_sensitive (chooser->details->set_as_default_button,
!g_app_info_equal (info, default_app));
if (default_app != NULL) {
gtk_widget_set_sensitive (chooser->details->set_as_default_button,
!g_app_info_equal (info, default_app));
g_object_unref (default_app);
}
gtk_widget_set_sensitive (chooser->details->add_button,
app_info_can_add (info, chooser->details->content_type));
g_object_unref (default_app);
}
static char *
......
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