mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
avoid checking openSSL info in release mode without -d option
This commit is contained in:
parent
2dbb114b47
commit
89375680b4
11
src/main.cpp
11
src/main.cpp
@ -145,10 +145,14 @@ int main(int argc, char *argv[])
|
||||
vconfig.initialize();
|
||||
g_config = &vconfig;
|
||||
|
||||
bool checkSSL = true;
|
||||
|
||||
#if defined(QT_NO_DEBUG)
|
||||
checkSSL = false;
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
if (!qstrcmp(argv[i], "-d")) {
|
||||
g_debugLog = true;
|
||||
checkSSL = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -168,8 +172,11 @@ int main(int argc, char *argv[])
|
||||
qDebug() << "files to open from arguments" << filePaths;
|
||||
|
||||
// Check the openSSL.
|
||||
qDebug() << "openSSL" << QSslSocket::sslLibraryBuildVersionString()
|
||||
<< QSslSocket::sslLibraryVersionNumber();
|
||||
if (checkSSL) {
|
||||
qDebug() << "openSSL"
|
||||
<< QSslSocket::sslLibraryBuildVersionString()
|
||||
<< QSslSocket::sslLibraryVersionNumber();
|
||||
}
|
||||
|
||||
// Load missing translation for Qt (QTextEdit/QPlainTextEdit/QTextBrowser).
|
||||
QTranslator qtTranslator1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user