[folks] inspect: Don't print details of unprepared persona stores
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] inspect: Don't print details of unprepared persona stores
- Date: Wed, 13 Jul 2011 23:14:15 +0000 (UTC)
commit 7ae86b48978223518cb101cf2f404da65acabfc2
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Jul 13 23:01:55 2011 +0100
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 files changed, 10 insertions(+), 0 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]