[frogr] Always fetch tags regardless of the 'disable tags autocompletion setting'



commit 7b4212e962704f13853706f55e8ad624798191bb
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Mon May 2 01:18:46 2011 +0200

    Always fetch tags regardless of the 'disable tags autocompletion setting'
    
    That option should control how data is visualized, not how it's
    obtained. Of course, if that feature is disabled, not having fetched the
    tags won't block any other operation (e.g. opening an 'add tags'
    dialog), as before.

 src/frogr-controller.c |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 2158590..5f9a475 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -1000,14 +1000,9 @@ _on_pictures_uploaded (FrogrController *self,
 
   if (!error)
     {
-      FrogrControllerPrivate *priv = NULL;
-      priv = FROGR_CONTROLLER_GET_PRIVATE (self);
-
       /* Fetch sets and tags (if needed) right after finishing */
       _fetch_sets (self);
-
-      if (frogr_config_get_tags_autocompletion (priv->config))
-        _fetch_tags (self);
+      _fetch_tags (self);
 
       DEBUG ("%s", "Success uploading pictures!");
     }
@@ -1028,17 +1023,11 @@ _fetch_everything (FrogrController *self)
 {
   g_return_if_fail(FROGR_IS_CONTROLLER (self));
 
-  FrogrControllerPrivate *priv = NULL;
-
   _fetch_account_info (self);
   _fetch_account_extra_info (self);
   _fetch_sets (self);
   _fetch_groups (self);
-
-  /* No need to retrieve tags if tags autocompletion is disabled */
-  priv = FROGR_CONTROLLER_GET_PRIVATE (self);
-  if (frogr_config_get_tags_autocompletion (priv->config))
-    _fetch_tags (self);
+  _fetch_tags (self);
 }
 
 static void



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