aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-tab.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index d23667c12..236e946ac 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -1324,11 +1324,12 @@ ephy_tab_update_file_monitor (EphyTab *tab,
{
EphyTabPrivate *priv = tab->priv;
GnomeVFSMonitorHandle *handle = NULL;
- GnomeVFSURI *uri;
gboolean local;
- if (priv->address != NULL && address != NULL &&
+ if (priv->monitor != NULL &&
+ priv->address != NULL && address != NULL &&
strcmp (priv->address, address) == 0)
+
{
/* same address, no change needed */
return;
@@ -1336,12 +1337,7 @@ ephy_tab_update_file_monitor (EphyTab *tab,
ephy_tab_file_monitor_cancel (tab);
- uri = gnome_vfs_uri_new (address);
- if (uri == NULL) return;
-
- local = gnome_vfs_uri_is_local (uri);
- gnome_vfs_uri_unref (uri);
-
+ local = g_str_has_prefix (address, "file://");
if (local == FALSE) return;
if (gnome_vfs_monitor_add (&handle, address,