Skip to content

Commit

Permalink
fix: folder did not remove without item
Browse files Browse the repository at this point in the history
itemount instead of pagecount
  • Loading branch information
kegechen authored and deepin-bot[bot] committed Jun 7, 2024
1 parent 8d13c8d commit 4498c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/itemarrangementproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void ItemArrangementProxyModel::commitDndOperation(const QString &dragId, const

// hold the empty page avoid access out of page range !
srcFolder->removeItem(dragId, false);
if (srcFolder->pageCount() == 0 && srcFolder != dstFolder) {
if (srcFolder->itemCount() == 0 && srcFolder != dstFolder) {
removeFolder(QString::number(srcFolderId));
}
dstFolder->insertItemToPage(dragId, pageHint);
Expand Down

0 comments on commit 4498c77

Please sign in to comment.