summaryrefslogtreecommitdiff
path: root/gtk/gtkplacesview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-09-21 19:41:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-09-21 19:42:28 -0400
commitc1ad0f595c06dc4ffe28b02c07579c6325c78ccc (patch)
treeeaf35982757f19bd49a8931f7eb4fc8649804587 /gtk/gtkplacesview.c
parent47167f59be2f61bd4d7ca3cbbd42df7e3ef5b7e8 (diff)
downloadgtk+-c1ad0f595c06dc4ffe28b02c07579c6325c78ccc.tar.gz
places view: fix a crash in finalize
Fix a GtkPlacesView crash in the test suite, _again_.
Diffstat (limited to 'gtk/gtkplacesview.c')
-rw-r--r--gtk/gtkplacesview.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index 5fa3c39efa..8fc6ec7f8b 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -960,7 +960,6 @@ network_enumeration_next_files_finished (GObject *source_object,
priv = gtk_places_view_get_instance_private (view);
error = NULL;
- gtk_places_view_set_fetching_networks (view, FALSE);
detected_networks = g_file_enumerator_next_files_finish (G_FILE_ENUMERATOR (source_object),
res, &error);
@@ -973,16 +972,18 @@ network_enumeration_next_files_finished (GObject *source_object,
}
else
{
+ gtk_places_view_set_fetching_networks (view, FALSE);
populate_networks (view, G_FILE_ENUMERATOR (source_object), detected_networks);
g_list_free_full (detected_networks, g_object_unref);
}
- /* avoid to update widgets if the operation was cancelled in finalize */
- if (priv->listbox != NULL)
+ /* avoid to update widgets if the operation was cancelled in finalize */
+ if (priv->listbox != NULL)
+ {
update_network_state (view);
-
- update_loading (view);
+ update_loading (view);
+ }
}
static void