# HG changeset patch # User Andre Heinecke # Date 1397581359 -7200 # Node ID cc1738b398a0e8449b8e99e39f4bae12354084c1 # Parent 72487438a18017978dbce6b43fc9140383c7faa6 Add == operator for certificates that compares the b64line diff -r 72487438a180 -r cc1738b398a0 ui/certificate.h --- a/ui/certificate.h Tue Apr 15 17:48:06 2014 +0200 +++ b/ui/certificate.h Tue Apr 15 19:02:39 2014 +0200 @@ -128,6 +128,9 @@ **/ static QList fromFileName (const QString& file_name); + friend inline bool operator==(const Certificate& lhs, const Certificate& rhs) { + return lhs.base64Line() == rhs.base64Line(); + } private: /** @brief Helper function to parse the details of a certificate **/ void parseDetails(const QByteArray& cert);