diff options
Diffstat (limited to 'src/mumble/ViewCert.cpp')
-rw-r--r-- | src/mumble/ViewCert.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mumble/ViewCert.cpp b/src/mumble/ViewCert.cpp index 19f4968f3..366987a1d 100644 --- a/src/mumble/ViewCert.cpp +++ b/src/mumble/ViewCert.cpp @@ -4,8 +4,8 @@ // Mumble source tree or at <https://www.mumble.info/LICENSE>. #include "ViewCert.h" +#include "QtUtils.h" -#include <QtCore/QUrl> #include <QtNetwork/QSslKey> #include <QtWidgets/QDialogButtonBox> #include <QtWidgets/QGroupBox> @@ -13,14 +13,9 @@ #include <QtWidgets/QListWidget> #include <QtWidgets/QVBoxLayout> -static QString decode_utf8_qssl_string(const QString &input) { - QString i = input; - return QUrl::fromPercentEncoding(i.replace(QLatin1String("\\x"), QLatin1String("%")).toLatin1()); -} - static QStringList processQSslCertificateInfo(QStringList in) { QStringList list; - foreach (QString str, in) { list << decode_utf8_qssl_string(str); } + foreach (QString str, in) { list << Mumble::QtUtils::decode_utf8_qssl_string(str); } return list; } |