Skip to content

Commit

Permalink
fix: Resolve the issue of invalid delete key on photo classification …
Browse files Browse the repository at this point in the history
…detail page

  Resolve the issue of invalid delete key on photo classification detail page

Log: Resolve the issue of invalid delete key on photo classification detail page
Bug: https://pms.uniontech.com/bug-view-232631.html
  • Loading branch information
starhcq authored and rb-union committed Dec 6, 2023
1 parent 23f4b22 commit 2e0d238
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/album/albumview/albumview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1577,10 +1577,10 @@ void AlbumView::onKeyDelete()
ImageEngineApi::instance()->moveImagesToTrash(paths, true);
}
}
} else if (COMMON_STR_CLASS == m_currentType) {
paths = m_classThumbnailList->selectedPaths();
} else if (COMMON_STR_CLASSDETAIL == m_currentType) {
paths = m_classDetailThumbnailList->selectedPaths();
if (!paths.isEmpty()) {
m_classThumbnailList->clearSelection();
m_classDetailThumbnailList->clearSelection();
bMoveToTrash = true;
}
} else if (COMMON_STR_FAVORITES == m_currentType) {
Expand Down

0 comments on commit 2e0d238

Please sign in to comment.