From 5e7fc909e7b32e64fbe6bd015d110d842bef5b83 Mon Sep 17 00:00:00 2001 From: fourtf Date: Mon, 4 Jun 2018 21:02:51 +0200 Subject: [PATCH] fixed an issue --- src/singletons/emotemanager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/singletons/emotemanager.cpp b/src/singletons/emotemanager.cpp index 5a53caf6f..cd70831b5 100644 --- a/src/singletons/emotemanager.cpp +++ b/src/singletons/emotemanager.cpp @@ -130,15 +130,18 @@ void EmoteManager::reloadBTTVChannelEmotes(const QString &channelName, QString code = emoteObject.value("code").toString(); // emoteObject.value("imageType").toString(); - QString link = linkTemplate; - link.detach(); - auto emote = this->getBTTVChannelEmoteFromCaches().getOrAdd(id, [&] { util::EmoteData emoteData; + QString link = linkTemplate; + link.detach(); emoteData.image1x = new Image(link.replace("{{id}}", id).replace("{{image}}", "1x"), 1, code, code + "
Channel BTTV Emote"); + link = linkTemplate; + link.detach(); emoteData.image2x = new Image(link.replace("{{id}}", id).replace("{{image}}", "2x"), 0.5, code, code + "
Channel BTTV Emote"); + link = linkTemplate; + link.detach(); emoteData.image3x = new Image(link.replace("{{id}}", id).replace("{{image}}", "3x"), 0.25, code, code + "
Channel BTTV Emote"); emoteData.pageLink = "https://manage.betterttv.net/emotes/" + id;