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
+1 -1
View File
@@ -3,7 +3,7 @@
## Unversioned
- Minor: Added user notes to the user info dialog (when clicking a username). (#6122)
- Minor: Added cached emotes fallback when fetching from a provider fails. (#6125)
- Minor: Added cached emotes fallback when fetching from a provider fails. (#6125, #6229)
- Minor: Add an option for the reduced opacity of message history. (#6121)
- Minor: Make paused chat indicator more visible, and fix its zoom behavior. (#6123)
- Minor: Added WebSocket API for plugins. (#6076, #6186)
+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))