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:
parent
57d47de74c
commit
93ecee3e71
|
@ -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())));
|
||||
|
|
Loading…
Reference in New Issue