changeset 1310:60e481aa75ca

(issue152) Do not return CryptUIDlgViewContext's return value The return value is false if the user cancels the dialog. But as the certificate has been shown this is not really an error.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 13 Oct 2014 14:13:05 +0200 (2014-10-13)
parents 32a44cfb78c0
children 135891f1c8f4
files ui/certificate.cpp
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ui/certificate.cpp	Mon Oct 13 13:29:19 2014 +0200
+++ b/ui/certificate.cpp	Mon Oct 13 14:13:05 2014 +0200
@@ -234,16 +234,12 @@
         goto done;
     }
 
-    if (!funcPtr(CERT_STORE_CERTIFICATE_CONTEXT,
+    funcPtr(CERT_STORE_CERTIFICATE_CONTEXT,
                  pCert,
                  (HWND) parent,
                  NULL, // Default Title
                  0,
-                 NULL)) {
-        qDebug() << "Failed to view certificate.";
-        retval = false;
-        goto done;
-    }
+                 NULL);
 
     retval = true;
 done:

http://wald.intevation.org/projects/trustbridge/