Only set QT_SSL_USE_TEMPORARY_KEYCHAIN on macOS

It's useless on other platforms.
This commit is contained in:
Cameron Gutman 2024-06-02 13:58:42 -05:00
parent 12b93337d1
commit b58f021fc8

View file

@ -420,9 +420,11 @@ int main(int argc, char *argv[])
#endif
}
#ifdef Q_OS_MACOS
// This avoids using the default keychain for SSL, which may cause
// password prompts on macOS.
qputenv("QT_SSL_USE_TEMPORARY_KEYCHAIN", "1");
#endif
#if defined(Q_OS_WIN32) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
if (!qEnvironmentVariableIsSet("QT_OPENGL")) {