mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Channel should never be a nullptr, set it to the "empty channel"
This commit is contained in:
parent
5aa892e834
commit
ae95528236
|
@ -139,7 +139,7 @@ void ChatWidget::channelNameUpdated(const std::string &newChannelName)
|
|||
this->messages.clear();
|
||||
|
||||
if (newChannelName.empty()) {
|
||||
this->channel = nullptr;
|
||||
this->channel = this->channelManager.getEmpty();
|
||||
} else {
|
||||
this->setChannel(this->channelManager.addChannel(QString::fromStdString(newChannelName)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue