diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2017-04-11 16:58:17 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2017-04-11 16:58:56 -0300 |
commit | 6ce78e8dca480ca37b4c35f0ef1e59211a909ecb (patch) | |
tree | 4b45fc259b19b1457c6555b8bfb633875392d8a7 /src/gtk | |
parent | 707c408f07bea1dfc691196eaacf942612a4fd06 (diff) | |
download | nautilus-6ce78e8dca480ca37b4c35f0ef1e59211a909ecb.tar.gz |
placesview: synchronize with GTK+
Diffstat (limited to 'src/gtk')
-rw-r--r-- | src/gtk/nautilusgtkplacesview.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gtk/nautilusgtkplacesview.c b/src/gtk/nautilusgtkplacesview.c index bccebeaf5..523008b7d 100644 --- a/src/gtk/nautilusgtkplacesview.c +++ b/src/gtk/nautilusgtkplacesview.c @@ -417,7 +417,11 @@ nautilus_gtk_places_view_destroy (GtkWidget *widget) priv->destroyed = 1; g_signal_handlers_disconnect_by_func (priv->volume_monitor, update_places, widget); - g_signal_handlers_disconnect_by_func (priv->network_monitor, update_places, widget); + + if (priv->network_monitor) + { + g_signal_handlers_disconnect_by_func (priv->network_monitor, update_places, widget); + } g_cancellable_cancel (priv->cancellable); g_cancellable_cancel (priv->networks_fetching_cancellable); |