fix: crash on older versions of Qt (#6229)

This commit is contained in:
pajlada
2025-05-23 16:53:19 +02:00
committed by GitHub
parent dd9e722da7
commit 8782533457
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -404,7 +404,7 @@ void writeProviderEmotesCache(const QString &id, const QString &provider,
}
threadPool->start([bytes, id, provider]() {
auto cacheKey = id % "." % provider;
QString cacheKey = id % "." % provider;
QFile responseCache(getApp()->getPaths().cacheFilePath(cacheKey));
if (responseCache.open(QIODevice::WriteOnly))
@@ -419,7 +419,7 @@ void writeProviderEmotesCache(const QString &id, const QString &provider,
bool readProviderEmotesCache(const QString &id, const QString &provider,
const std::function<void(QJsonDocument)> &callback)
{
auto cacheKey = id % "." % provider;
QString cacheKey = id % "." % provider;
QFile responseCache(getApp()->getPaths().cacheFilePath(cacheKey));
if (responseCache.open(QIODevice::ReadOnly))