added watching channel

This commit is contained in:
fourtf
2018-04-20 19:54:45 +02:00
parent e17a7cc222
commit a16a2b0579
14 changed files with 128 additions and 45 deletions
+4 -2
View File
@@ -138,8 +138,10 @@ void SelectChannelDialog::ok()
this->close();
}
void SelectChannelDialog::setSelectedChannel(ChannelPtr channel)
void SelectChannelDialog::setSelectedChannel(IndirectChannel _channel)
{
auto channel = _channel.get();
assert(channel);
this->selectedChannel = channel;
@@ -171,7 +173,7 @@ void SelectChannelDialog::setSelectedChannel(ChannelPtr channel)
this->_hasSelectedChannel = false;
}
ChannelPtr SelectChannelDialog::getSelectedChannel() const
IndirectChannel SelectChannelDialog::getSelectedChannel() const
{
if (!this->_hasSelectedChannel) {
return this->selectedChannel;