More const detach fixes

This commit is contained in:
Jonas Kvinge
2024-08-23 20:30:59 +02:00
parent be09011bb7
commit 7ebcc73a49
54 changed files with 195 additions and 180 deletions

View File

@@ -163,7 +163,7 @@ void RadioModel::AddChannels(const RadioChannelList &channels) {
for (const RadioChannel &channel : channels) {
RadioItem *container = nullptr;
if (container_nodes_.contains(channel.source)) {
container = container_nodes_[channel.source];
container = container_nodes_.value(channel.source);
}
else {
beginInsertRows(ItemToIndex(root_), static_cast<int>(root_->children.count()), static_cast<int>(root_->children.count()));