[seahorse] pgp/key-properties: Fix revoke subkeys dialog



commit 25f437cdb091befe7afe18926c087108d379b659
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Fri Feb 26 06:39:11 2021 +0100

    pgp/key-properties: Fix revoke subkeys dialog

 pgp/seahorse-pgp-key-properties.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/pgp/seahorse-pgp-key-properties.c b/pgp/seahorse-pgp-key-properties.c
index 86765806..3ca41dcd 100644
--- a/pgp/seahorse-pgp-key-properties.c
+++ b/pgp/seahorse-pgp-key-properties.c
@@ -1048,7 +1048,8 @@ on_subkeys_revoke (GSimpleAction *action, GVariant *param, gpointer user_data)
 {
     SeahorsePgpKeyProperties *self = SEAHORSE_PGP_KEY_PROPERTIES (user_data);
     SeahorsePgpSubkey *subkey = get_selected_subkey (self);
-    if (subkey != NULL)
+
+    if (!subkey)
         return;
 
     g_return_if_fail (SEAHORSE_GPGME_IS_SUBKEY (subkey));


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