From 82daa60c6c67c1a054850e486b0303b82af3c84e Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 26 Jan 2017 23:26:25 +0000 Subject: =?UTF-8?q?gkr:=20Don=E2=80=99t=20update=20key=20description=20if?= =?UTF-8?q?=20it=20doesn=E2=80=99t=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the user right-clicks in the ‘Description’ entry in the item properties window, without changing the description, their text selection will be dropped. This is because Seahorse is trying to update the item description in the background, as a result of the entry losing focus. Avoid trying to update the item description if it has not changed, which will cover most cases of the user right-clicking. https://bugzilla.gnome.org/show_bug.cgi?id=777802 --- gkr/gkr-item-properties.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gkr/gkr-item-properties.vala b/gkr/gkr-item-properties.vala index df3dabd..9e6e89d 100644 --- a/gkr/gkr-item-properties.vala +++ b/gkr/gkr-item-properties.vala @@ -260,6 +260,8 @@ public class ItemProperties : Gtk.Dialog { { if (this._updating_description) return; + if (this.item.label == description.text) + return; this._updating_description = true; description.sensitive = false; -- cgit v0.12