test code

This commit is contained in:
Rasmus Karlsson
2018-01-19 22:45:33 +01:00
parent 66e99fd36f
commit 03ff2205fa
17 changed files with 397 additions and 221 deletions
+1 -6
View File
@@ -106,11 +106,6 @@ void TwitchChannel::setMod(bool value)
bool TwitchChannel::isBroadcaster()
{
QString xD = this->name;
QString xD2 = singletons::AccountManager::getInstance().Twitch.getCurrent()->getUserName();
qDebug() << xD << xD2;
return this->name ==
singletons::AccountManager::getInstance().Twitch.getCurrent()->getUserName();
}
@@ -144,7 +139,7 @@ void TwitchChannel::refreshLiveStatus()
std::weak_ptr<Channel> weak = this->shared_from_this();
util::twitch::get2(url, QThread::currentThread(), [weak](rapidjson::Document &d) {
util::twitch::get2(url, QThread::currentThread(), [weak](const rapidjson::Document &d) {
SharedChannel shared = weak.lock();
if (!shared) {