Fix version constraint for `qputenv` usage

The QByteArray overload has only been removed since Qt 6.5 and without the removal
a QByteArray is attempted to be instantiated.
This commit is contained in:
Martchus 2024-02-16 19:17:51 +01:00
parent 57d47de74c
commit 93ecee3e71
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ void ApplicationTests::test()
// use environment variables to specify API-key and URL
qputenv("SYNCTHING_CTL_API_KEY", apiKey);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
qputenv("SYNCTHING_CTL_URL", url);
#else
qputenv("SYNCTHING_CTL_URL", QByteArray(url.data(), static_cast<int>(url.size())));