[frogr] Do not actually fetch tags if the autocompletion is off



commit 14eb89f2f4d959a0b28bbf2c04276a9b6b600161
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Sat May 7 17:29:12 2011 +0200

    Do not actually fetch tags if the autocompletion is off

 src/frogr-controller.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 930a456..5ec32e7 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -1377,6 +1377,11 @@ _fetch_tags (FrogrController *self)
 
   priv = FROGR_CONTROLLER_GET_PRIVATE (self);
   priv->tags_fetched = FALSE;
+
+  /* Do not actually fetch tags if the autocompletion is off */
+  if (!frogr_config_get_tags_autocompletion (priv->config))
+    return;
+
   priv->fetching_tags = TRUE;
 
   _enable_cancellable (self, TRUE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]