[folks] Warn if the primary store is not found.



commit 7e20483ebc830438fc5d377e90e9017e4befead2
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Thu Oct 27 16:44:18 2011 -0700

    Warn if the primary store is not found.
    
    This includes steps for the user to fix the problem.
    
    Helps: bgo#662274 - Failed to link personas: Can't link personas with
    no primary store.

 folks/individual-aggregator.vala |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/folks/individual-aggregator.vala b/folks/individual-aggregator.vala
index 456cff0..d8df003 100644
--- a/folks/individual-aggregator.vala
+++ b/folks/individual-aggregator.vala
@@ -1351,6 +1351,20 @@ public class Folks.IndividualAggregator : Object
           this._non_quiescent_persona_store_count == 0 &&
           this._is_quiescent == false)
         {
+          if (this._configured_primary_store_type_id.length > 0 &&
+              this._primary_store == null)
+            {
+              warning ("Failed to find primary PersonaStore with type ID " +
+                  "'%s' and ID '%s'.\n" +
+                  "Individuals will not be linked properly " +
+                  "and creating new links between Personas will not work.\n" +
+                  "The configured primary PersonaStore's backend may not be " +
+                  "installed. If you are unsure, check with your " +
+                  "distribution.",
+                  this._configured_primary_store_type_id,
+                  this._configured_primary_store_id);
+            }
+
           this._is_quiescent = true;
           this.notify_property ("is-quiescent");
         }



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