From 5923e301329ad8501291ebb7339d9c2ad7a44d56 Mon Sep 17 00:00:00 2001 From: fourtf Date: Mon, 4 Jun 2018 12:48:23 +0200 Subject: [PATCH] fixed emote popup images --- src/singletons/emotemanager.cpp | 2 +- src/util/networkrequest.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/singletons/emotemanager.cpp b/src/singletons/emotemanager.cpp index 107b3b10d..ca18458f5 100644 --- a/src/singletons/emotemanager.cpp +++ b/src/singletons/emotemanager.cpp @@ -450,7 +450,7 @@ void EmoteManager::refreshTwitchEmotes(const std::shared_ptr &use for (QJsonValue emoteValue : emoteSetList) { QJsonObject emoticon = emoteValue.toObject(); - std::string id = emoticon["id"].toString().toStdString(); + std::string id = QString::number(emoticon["id"].toInt()).toStdString(); std::string code = emoticon["code"].toString().toStdString(); emoteData.emoteSets[emoteSetString].push_back({id, code}); emoteData.emoteCodes.push_back(code); diff --git a/src/util/networkrequest.hpp b/src/util/networkrequest.hpp index 44ea93b34..ee3cfdf6d 100644 --- a/src/util/networkrequest.hpp +++ b/src/util/networkrequest.hpp @@ -435,7 +435,7 @@ private: if (data.caller == nullptr) { QByteArray bytes = reply->readAll(); data.writeToCache(bytes); - data.onSuccess(parseJSONFromData2(bytes)); +// data.onSuccess(parseJSONFromData2(bytes)); reply->deleteLater(); } else {