[seahorse] gkr: Don’t update key description if it doesn’t change
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] gkr: Don’t update key description if it doesn’t change
- Date: Wed, 1 Feb 2017 12:36:07 +0000 (UTC)
commit 82daa60c6c67c1a054850e486b0303b82af3c84e
Author: Philip Withnall <withnall endlessm com>
Date: Thu Jan 26 23:26:25 2017 +0000
gkr: Don’t update key description if it doesn’t change
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 files changed, 2 insertions(+), 0 deletions(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]