aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-location-action.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-location-action.c')
-rw-r--r--src/ephy-location-action.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c
index d8d62b82e..c9e1c5903 100644
--- a/src/ephy-location-action.c
+++ b/src/ephy-location-action.c
@@ -98,9 +98,11 @@ location_url_activate_cb (EphyLocationEntry *entry,
static void
connect_proxy (EggAction *action, GtkWidget *proxy)
{
- EphyAutocompletion *ac = ephy_shell_get_autocompletion (ephy_shell);
+ EphyAutocompletion *ac;
EphyLocationEntry *e = EPHY_LOCATION_ENTRY (proxy);
+ ac = EPHY_AUTOCOMPLETION (ephy_shell_get_autocompletion (ephy_shell));
+
LOG ("Connect location proxy")
g_return_if_fail (EPHY_IS_LOCATION_ENTRY (e));