diff -r daa8770b9d26 -r d862721d19a3 src/main.cpp --- a/src/main.cpp Wed Jun 29 16:21:44 2022 +0300 +++ b/src/main.cpp Wed Jun 29 16:33:49 2022 +0300 @@ -398,10 +398,10 @@ return subWindow; } -static QSet resolveIdsFromSelection(const ModelData* data) +static QSet resolveIdsFromSelection(const ModelData* data) { const auto selection = data->itemSelectionModel->selection(); - QSet selectedIndexes; + QSet selectedIndexes; for (const QModelIndex& qindex : selection.indexes()) { const std::size_t row = unsigned_cast(qindex.row()); selectedIndexes.insert(data->model->idAt(row)); @@ -548,13 +548,13 @@ QObject::connect( data->tools.get(), &EditTools::select, - [modelId, &documents](const QSet& indices, bool retain) { + [modelId, &documents](const QSet& indices, bool retain) { ModelData* data = findModelData(&documents, modelId); if (data != nullptr) { if (not retain) { data->itemSelectionModel->clear(); } - for (const ModelId id : indices) { + for (const ElementId id : indices) { opt index = data->model->find(id); if (index.has_value()) { const QModelIndex qindex = data->model->index(*index);