From 7ae86b48978223518cb101cf2f404da65acabfc2 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 13 Jul 2011 23:01:55 +0100 Subject: [PATCH] inspect: Don't print details of unprepared persona stores We're not supposed to, and they're not very useful anyway. Instead, we now print a message saying that the persona store is not prepared. --- tools/inspect/utils.vala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala index 11767e6..ef1e5a5 100644 --- a/tools/inspect/utils.vala +++ b/tools/inspect/utils.vala @@ -173,6 +173,16 @@ private class Folks.Inspect.Utils public static void print_persona_store (PersonaStore store, bool show_personas) { + if (store.is_prepared == false) + { + Utils.print_line ("Persona store '%s':", store.id); + Utils.indent (); + Utils.print_line ("Not prepared."); + Utils.unindent (); + + return; + } + Utils.print_line ("Persona store '%s' with %u personas:", store.id, store.personas.size); -- 2.7.4