[gnome-contacts/wip/nielsdg/converge-editor-and-sheet] ContactSheet: solve Critical with an empty first persona.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/nielsdg/converge-editor-and-sheet] ContactSheet: solve Critical with an empty first persona.
- Date: Wed, 25 Apr 2018 19:04:50 +0000 (UTC)
commit 0102b42170c0e639931c5382724146e87bcf1076
Author: Niels De Graef <nielsdegraef gmail com>
Date: Wed Apr 25 21:03:46 2018 +0200
ContactSheet: solve Critical with an empty first persona.
src/contacts-contact-sheet.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index 37ff5c3..3677dee 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -126,12 +126,12 @@ public class Contacts.ContactSheet : ContactForm {
foreach (var prop in ContactForm.SORTED_PROPERTIES)
add_row_for_property (p, prop);
- if (this.last_row != 3)
- is_first_persona = false;
-
// Nothing to show in the persona: don't mention it
- if (this.last_row == persona_store_pos + 1)
+ if (!is_first_persona && this.last_row == persona_store_pos + 1)
get_child_at (0, persona_store_pos).destroy ();
+
+ if (this.last_row != 3)
+ is_first_persona = false;
}
show_all ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]