mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Implement naive split-closing. This will most likely have some memory leak (at least)
This commit is contained in:
parent
4bfe58f14d
commit
945ca5d17a
|
@ -215,7 +215,6 @@ boost::property_tree::ptree ChatWidget::save()
|
|||
}
|
||||
|
||||
/// Slots
|
||||
//
|
||||
void ChatWidget::doAddSplit()
|
||||
{
|
||||
NotebookPage *page = static_cast<NotebookPage *>(this->parentWidget());
|
||||
|
@ -224,7 +223,8 @@ void ChatWidget::doAddSplit()
|
|||
|
||||
void ChatWidget::doCloseSplit()
|
||||
{
|
||||
qDebug() << "[UNIMPLEMENTED] Close split for" << this->getChannelName();
|
||||
NotebookPage *page = static_cast<NotebookPage *>(this->parentWidget());
|
||||
page->removeFromLayout(this);
|
||||
}
|
||||
|
||||
void ChatWidget::doChangeChannel()
|
||||
|
|
Loading…
Reference in a new issue