From 97411c045c7be82c83c0dca425bde9d42c71f02f Mon Sep 17 00:00:00 2001 From: Bur0k Date: Wed, 17 Jan 2018 19:44:35 +0100 Subject: [PATCH] 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. --- src/widgets/split.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/split.cpp b/src/widgets/split.cpp index 0833fb6c6..55d29fa94 100644 --- a/src/widgets/split.cpp +++ b/src/widgets/split.cpp @@ -317,8 +317,8 @@ void Split::doAddSplit() void Split::doCloseSplit() { SplitContainer *page = static_cast(this->parentWidget()); - singletons::ChannelManager::getInstance().removeTwitchChannel(this->channel->name); page->removeFromLayout(this); + deleteLater(); } void Split::doChangeChannel()