Implement naive split-closing. This will most likely have some memory leak (at least)

This commit is contained in:
Rasmus Karlsson 2017-06-11 12:03:47 +02:00
parent 4bfe58f14d
commit 945ca5d17a

View file

@ -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()