Reworked the property system and fixed a crash
This commit is contained in:
@@ -98,7 +98,7 @@ std::shared_ptr<ViewEntry> ClientChannelView::find_channel(const std::shared_ptr
|
||||
|
||||
while(heads.front()) {
|
||||
auto parent = heads.front()->parent();
|
||||
if(!parent && heads.front()->properties()[property::CHANNEL_PID].as<ChannelId>() != 0) {
|
||||
if(!parent && heads.front()->properties()[property::CHANNEL_PID].as_or<ChannelId>(0) != 0) {
|
||||
head = this->find_linked_entry(channel->channelId(), nullptr);//We're searching for a deleted head! So lets iterate over everything
|
||||
deep_search = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user