Skip to content

Commit 068c73b

Browse files
committed
Fix displaying nested items in file browser after 7a23a53
1 parent f3a7b94 commit 068c73b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syncthingmodel/syncthingfilemodel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1005,13 +1005,13 @@ void SyncthingFileModel::processFetchQueue(const QString &lastItemPath)
10051005
if (!items.empty()) {
10061006
const auto last = items.size() - 1;
10071007
for (auto &item : items) {
1008-
item->existsInDb = true;
10091008
item->parent = refreshedItem;
10101009
}
10111010
populatePath(refreshedItem->path, m_pathSeparator, items);
10121011
beginInsertRows(
10131012
refreshedIndex, 0, last < std::numeric_limits<int>::max() ? static_cast<int>(last) : std::numeric_limits<int>::max());
10141013
refreshedItem->children = std::move(items);
1014+
forEachItem(refreshedItem, [](SyncthingItem *item) { return item->existsInDb.emplace(true); });
10151015
switch (refreshedItem->checked) {
10161016
case Qt::Checked:
10171017
if (m_recursiveSelectionEnabled) {

0 commit comments

Comments
 (0)