Skip to content

Commit

Permalink
Fix LDAP search with Qt6 and minor fixes (open-eid#1075)
Browse files Browse the repository at this point in the history
IB-7410

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored May 31, 2022
1 parent 995078d commit 350b837
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions client/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ Application::~Application()
digidoc::terminate();
delete d;

QDesktopServices::unsetUrlHandler(QStringLiteral("browse"));
QDesktopServices::unsetUrlHandler(QStringLiteral("mailto"));

if(property("restart").toBool())
{
QStringList args = arguments();
Expand Down
10 changes: 7 additions & 3 deletions client/Diagnostics_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <QtCore/QFile>
#include <QtCore/QTextStream>
#include <QtCore/QProcess>
#include <QtNetwork/QSslSocket>

#include <sys/utsname.h>
#ifdef Q_OS_MAC
Expand Down Expand Up @@ -116,15 +117,18 @@ void Diagnostics::run()
emit update( info );
info.clear();

s << "<b>" << tr("Libraries") << ":</b><br />" << packages({
s << "<b>" << tr("Libraries") << ":</b><br />"
<< "QT (" << qVersion() << ")" << "<br />"
<< "OpenSSL build (" << QSslSocket::sslLibraryBuildVersionString() << ")<br />"
<< "OpenSSL current (" << QSslSocket::sslLibraryVersionString() << ")<br />"
<< packages({
#ifdef Q_OS_MAC
"digidocpp"
#else
"libdigidoc2", "libdigidocpp1", "qdigidoc", "qesteidutil", "qdigidoc-tera", "firefox-pkcs11-loader",
"chrome-token-signing", "web-eid", "openssl", "libpcsclite1", "pcsc-lite", "opensc", "awp"
#endif
}).join(QStringLiteral("<br />")) << "<br />";
s << "QT (" << qVersion() << ")" << "<br /><br />";
}).join(QStringLiteral("<br />")) << "<br /><br />";
emit update( info );
info.clear();

Expand Down
6 changes: 5 additions & 1 deletion client/Diagnostics_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <QtCore/QSettings>
#include <QtCore/QTextStream>
#include <QtCore/QVector>
#include <QtNetwork/QSslSocket>

#include <qt_windows.h>

Expand Down Expand Up @@ -133,7 +134,10 @@ void Diagnostics::run()
emit update( info );
info.clear();

s << "<b>" << tr("Libraries") << ":</b><br />" << "QT (" << qVersion() << ")<br />";
s << "<b>" << tr("Libraries") << ":</b><br />"
<< "QT (" << qVersion() << ")<br />"
<< "OpenSSL build (" << QSslSocket::sslLibraryBuildVersionString() << ")<br />"
<< "OpenSSL current (" << QSslSocket::sslLibraryVersionString() << ")<br />";

QByteArray path = qgetenv("PATH");
qputenv("PATH", path
Expand Down
2 changes: 1 addition & 1 deletion client/dialogs/AddRecipients.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ void AddRecipients::search(const QString &term, bool select, const QString &type
};
QString cleanTerm = term.simplified();
bool isDigit = false;
cleanTerm.toULong(&isDigit);
cleanTerm.toULongLong(&isDigit);
if(isDigit && (cleanTerm.size() == 11 || cleanTerm.size() == 8))
{
if(cleanTerm.size() == 11)
Expand Down
1 change: 0 additions & 1 deletion qdigidoc4.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ msiexec /a libdigidocpp-3.13.8.1378.msi /qn TARGETDIR=C:\target
</Directory>
<Directory Id="imageformats" Name="imageformats" FileSource="$(var.qt_path)\..\plugins\imageformats">
<Component Id="imageformats.dll" Guid="2796915c-6255-4569-97cc-12fa979c4777">
<File Name="qgif$(var.qt_suffix).dll"/>
<File Name="qjpeg$(var.qt_suffix).dll"/>
<File Name="qsvg$(var.qt_suffix).dll"/>
</Component>
Expand Down

0 comments on commit 350b837

Please sign in to comment.