1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 23:14:47 -04:00

Add missing image and fix Linux compilation warnings

This commit is contained in:
Jon Beniston
2022-02-04 21:33:04 +00:00
parent fd70ffcfdc
commit 09eff20a8e
5 changed files with 38 additions and 6 deletions
+8
View File
@@ -147,11 +147,19 @@ void WebServer::readClient()
// See if we can find the file in our resources
QResource res(path);
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
if (res.isValid() && (res.uncompressedSize() > 0))
{
QByteArray data = res.uncompressedData();
sendFile(socket, data, mimeType, path);
}
#else
if (res.isValid() && (res.size() > 0))
{
QByteArray data = QByteArray::fromRawData((const char *)res.data(), res.size());
sendFile(socket, data, mimeType, path);
}
#endif
else
{
// See if we can find a file