Commit f6a9179f authored by Richard Hughes's avatar Richard Hughes
Browse files

Fix a crash when double clicking package files

This is caused by a call to gs_shell_details_switch_to() before the
filename_to_app() plugin function has run. We call gs_shell_details_switch_to()
manually after completing this task so ignoring the first refresh is the right
thing to do.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=763733
parent 58da69cb
......@@ -173,6 +173,10 @@ gs_shell_details_switch_to (GsPage *page, gboolean scroll_up)
widget = GTK_WIDGET (gtk_builder_get_object (self->builder, "application_details_header"));
gtk_widget_show (widget);
/* not set, perhaps filename-to-app */
if (self->app == NULL)
return;
state = gs_app_get_state (self->app);
/* label */
......
Supports Markdown
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