fixed emote popup images

This commit is contained in:
fourtf 2018-06-04 12:48:23 +02:00
parent 4a2709cbc3
commit 5923e30132
2 changed files with 2 additions and 2 deletions

View file

@ -450,7 +450,7 @@ void EmoteManager::refreshTwitchEmotes(const std::shared_ptr<TwitchAccount> &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);

View file

@ -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 {