Skip to content

Commit

Permalink
fix crash on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlok committed May 28, 2024
1 parent f62a823 commit 979f765
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 979f765

Please sign in to comment.