summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2018-01-22 22:35:03 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2018-01-22 22:35:03 +0100
commit4d52db4d94ca6b5bf68d2de5b35283a76aac25af (patch)
tree587ab9b01b4a238d3ec2ab6ef844c73c882dc499
parenta91a08009820848de18d02854db73cee0aae429e (diff)
downloadgnome-contacts-4d52db4d94ca6b5bf68d2de5b35283a76aac25af.tar.gz
ContactList: right-click == checkbox toggle in selection mode.
This, together with the previous commit, fixes [bug 703201](https://bugzilla.gnome.org/show_bug.cgi?id=703201).
-rw-r--r--src/contacts-contact-list.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contacts-contact-list.vala b/src/contacts-contact-list.vala
index f45bb2f..950b990 100644
--- a/src/contacts-contact-list.vala
+++ b/src/contacts-contact-list.vala
@@ -272,7 +272,7 @@ public class Contacts.ContactList : ListBox {
if (event.button == Gdk.BUTTON_SECONDARY) {
var row = (ContactDataRow) get_row_at_y ((int) Math.round (event.y));
select_row (row);
- row.selector_button.active = (this.state != UiState.SELECTING);
+ row.selector_button.active = (this.state != UiState.SELECTING) || !row.selector_button.active;
}
return false;