Fixed popups in viewer list. (#110)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
namespace chatterino {
|
||||
namespace widgets {
|
||||
|
||||
AccountPopupWidget::AccountPopupWidget(std::shared_ptr<Channel> &channel)
|
||||
AccountPopupWidget::AccountPopupWidget(std::shared_ptr<Channel> channel)
|
||||
: QWidget(nullptr)
|
||||
, _ui(new Ui::AccountPopup)
|
||||
, _channel(channel)
|
||||
@@ -37,8 +37,14 @@ void AccountPopupWidget::setName(const QString &name)
|
||||
getUserId();
|
||||
}
|
||||
|
||||
void AccountPopupWidget::setChannel(std::shared_ptr<Channel> channel)
|
||||
{
|
||||
this->_channel = channel;
|
||||
}
|
||||
|
||||
void AccountPopupWidget::getUserId()
|
||||
{
|
||||
qDebug() << this->_channel.get()->name;
|
||||
QUrl nameUrl("https://api.twitch.tv/kraken/users?login=" + _ui->lblUsername->text());
|
||||
|
||||
QNetworkRequest req(nameUrl);
|
||||
|
||||
Reference in New Issue
Block a user