[seahorse] SSH: fix bug that prevented deleting SSH keys



commit f6ca1f2e1a1cc66b0c56f2a33150bfbf54bb199b
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Mon Oct 2 10:06:42 2017 +0200

    SSH: fix bug that prevented deleting SSH keys

 ssh/deleter.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/ssh/deleter.vala b/ssh/deleter.vala
index 22c5e1b..10788c2 100644
--- a/ssh/deleter.vala
+++ b/ssh/deleter.vala
@@ -33,10 +33,10 @@ public class Seahorse.Ssh.Deleter : Seahorse.Deleter {
 
     public override Gtk.Dialog create_confirm(Gtk.Window? parent) {
         uint num = this.keys.length();
-        assert(num != 1);
 
         string confirm, prompt;
         if (this.have_private) {
+            assert(num == 1);
 
             prompt = _("Are you sure you want to delete the secure shell key ā€œ%sā€?")
                          .printf(this.keys.data.label);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]