[gnome-contacts] Don't make unlink button sensitive if there is only one persona
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Don't make unlink button sensitive if there is only one persona
- Date: Fri, 9 Sep 2011 12:18:57 +0000 (UTC)
commit 46b3dda1f904458cbd7d552c88ae9c203ec60847
Author: Alexander Larsson <alexl redhat com>
Date: Fri Sep 9 11:16:38 2011 +0200
Don't make unlink button sensitive if there is only one persona
src/contacts-link-dialog.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-link-dialog.vala b/src/contacts-link-dialog.vala
index 8743f94..2d81e5e 100644
--- a/src/contacts-link-dialog.vala
+++ b/src/contacts-link-dialog.vala
@@ -70,6 +70,7 @@ public class Contacts.LinkDialog : Dialog {
button.set_valign (Align.CENTER);
button.set_halign (Align.END);
persona_grid.attach (button, 1, i, 1, 2);
+ button.sensitive = contact.individual.personas.size > 1;
button.clicked.connect ( (button) => {
unlink_persona.begin (contact, p, (obj, result) => {
unlink_persona.end (result);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]