aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorIonut Biru <ibiru@archlinux.org>2011-09-27 02:12:40 +0800
committerXan Lopez <xlopez@igalia.com>2011-09-27 21:50:55 +0800
commit1cb7fb1109aecedd224d03fda202165adf3423a7 (patch)
treea4dbb83990d9f643e30106ecf4de63fd4f076313 /src/ephy-shell.c
parent76aa514c60e92f69823ee6d1aa3aecec24c3fc8e (diff)
downloadgsoc2013-epiphany-1cb7fb1109aecedd224d03fda202165adf3423a7.tar
gsoc2013-epiphany-1cb7fb1109aecedd224d03fda202165adf3423a7.tar.gz
gsoc2013-epiphany-1cb7fb1109aecedd224d03fda202165adf3423a7.tar.bz2
gsoc2013-epiphany-1cb7fb1109aecedd224d03fda202165adf3423a7.tar.lz
gsoc2013-epiphany-1cb7fb1109aecedd224d03fda202165adf3423a7.tar.xz
gsoc2013-epiphany-1cb7fb1109aecedd224d03fda202165adf3423a7.tar.zst
gsoc2013-epiphany-1cb7fb1109aecedd224d03fda202165adf3423a7.zip
Don't crash when network manager is not available
https://bugzilla.gnome.org/show_bug.cgi?id=659103 Signed-off-by: Ionut Biru <ibiru@archlinux.org>
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index bf8eb18f6..c436da139 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -470,10 +470,11 @@ impl_get_embed_single (EphyEmbedShell *embed_shell)
priv->embed_single_connected = TRUE;
/* Now we need the net monitor */
- ephy_shell_get_net_monitor (shell);
- ephy_shell_sync_network_status (priv->nm_proxy,
- ephy_network_manager_get_state (priv->nm_proxy),
- shell);
+ if (ephy_shell_get_net_monitor (shell)) {
+ ephy_shell_sync_network_status (priv->nm_proxy,
+ ephy_network_manager_get_state (priv->nm_proxy),
+ shell);
+ }
}
return embed_single;