improved saving of splits and watching split

This commit is contained in:
fourtf
2018-04-20 22:33:28 +02:00
parent a16a2b0579
commit 5015633cc7
7 changed files with 60 additions and 21 deletions
+3 -3
View File
@@ -134,13 +134,13 @@ ChannelPtr Split::getChannel()
void Split::setChannel(IndirectChannel newChannel)
{
this->channel = newChannel;
this->view.setChannel(newChannel.get());
this->usermodeChangedConnection.disconnect();
this->indirectChannelChangedConnection.disconnect();
this->channel = newChannel;
TwitchChannel *tc = dynamic_cast<TwitchChannel *>(newChannel.get().get());
if (tc != nullptr) {
@@ -199,7 +199,7 @@ void Split::showChangeChannelPopup(const char *dialogTitle, bool empty,
{
SelectChannelDialog *dialog = new SelectChannelDialog();
if (!empty) {
dialog->setSelectedChannel(this->getChannel());
dialog->setSelectedChannel(this->getIndirectChannel());
}
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show();