Trim channelname in join channel window.

This commit is contained in:
23rd 2018-09-21 13:55:58 +03:00 committed by pajlada
parent ea17d23224
commit 579c6b9bf9

View file

@ -208,7 +208,7 @@ IndirectChannel SelectChannelDialog::getSelectedChannel() const
case TAB_TWITCH: { case TAB_TWITCH: {
if (this->ui_.twitch.channel->isChecked()) { if (this->ui_.twitch.channel->isChecked()) {
return app->twitch.server->getOrAddChannel( return app->twitch.server->getOrAddChannel(
this->ui_.twitch.channelName->text()); this->ui_.twitch.channelName->text().trimmed());
} else if (this->ui_.twitch.watching->isChecked()) { } else if (this->ui_.twitch.watching->isChecked()) {
return app->twitch.server->watchingChannel; return app->twitch.server->watchingChannel;
} else if (this->ui_.twitch.mentions->isChecked()) { } else if (this->ui_.twitch.mentions->isChecked()) {