qt.network.ssl.warning=false appears only since Qt 5.4.1.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-02 13:46:46 +03:00
parent 47b1e20257
commit 3e12775a22

View File

@ -80,11 +80,13 @@ VAbstractApplication::VAbstractApplication(int &argc, char **argv)
Settings()->sync();
});
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 1)
#if defined(V_NO_ASSERT)
// Ignore SSL-related warnings
// See issue #528: Error: QSslSocket: cannot resolve SSLv2_client_method.
qputenv("QT_LOGGING_RULES", "qt.network.ssl.warning=false");
#endif //defined(V_NO_ASSERT)
#endif // QT_VERSION >= QT_VERSION_CHECK(5, 4, 1)
}
//---------------------------------------------------------------------------------------------------------------------