mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Calling deleteLater() in CloseSplit
Instead of removing the TwitchChannel manually in CloseSplit, a request to delete this widget will be sent to QT. In the destructor the TwitchChannel will be removed as planned.
This commit is contained in:
parent
728b6e74a8
commit
97411c045c
1 changed files with 1 additions and 1 deletions
|
@ -317,8 +317,8 @@ void Split::doAddSplit()
|
|||
void Split::doCloseSplit()
|
||||
{
|
||||
SplitContainer *page = static_cast<SplitContainer *>(this->parentWidget());
|
||||
singletons::ChannelManager::getInstance().removeTwitchChannel(this->channel->name);
|
||||
page->removeFromLayout(this);
|
||||
deleteLater();
|
||||
}
|
||||
|
||||
void Split::doChangeChannel()
|
||||
|
|
Loading…
Reference in a new issue