added select channel dialog

This commit is contained in:
fourtf
2018-04-18 09:12:29 +02:00
parent 043823120f
commit 3446a623f5
29 changed files with 1295 additions and 69 deletions
+7 -8
View File
@@ -219,17 +219,16 @@ NotebookTab *SplitContainer::getTab() const
void SplitContainer::addChat(bool openChannelNameDialog)
{
Split *w = this->createChatWidget();
this->addToLayout(w, std::pair<int, int>(-1, -1));
if (openChannelNameDialog) {
bool ret = w->showChangeChannelPopup("Open channel name", true);
if (!ret) {
delete w;
return;
}
w->showChangeChannelPopup("Open channel name", true, [=](bool ok) {
if (!ok) {
this->removeFromLayout(w);
delete w;
}
});
}
this->addToLayout(w, std::pair<int, int>(-1, -1));
}
void SplitContainer::refreshCurrentFocusCoordinates(bool alsoSetLastRequested)