From 979f76585a0470027f21d11ac4a6ff5c2ee7d6fc Mon Sep 17 00:00:00 2001 From: Le Tan Date: Tue, 28 May 2024 21:09:02 +0800 Subject: [PATCH] fix crash on macOS --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 44076294c8..d4280939f8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -147,12 +147,15 @@ int main(int argc, char *argv[]) QDateTime::currentDateTime().toString(), QSysInfo::productType()); +// sslLibraryBuildVersionString will cause crash on macOS. +#if !defined(Q_OS_MACOS) qInfo() << "OpenSSL build version:" << QSslSocket::sslLibraryBuildVersionString() << "link version:" << QSslSocket::sslLibraryVersionString(); if (QSslSocket::sslLibraryBuildVersionNumber() != QSslSocket::sslLibraryVersionNumber()) { qWarning() << "versions of the built and linked OpenSSL mismatch, network may not work"; } +#endif // Should set the correct locale before VNoteX::getInst(). loadTranslators(app);