🐞 fix(UI模块): 修改进入退出编辑模式的条件

This commit is contained in:
huheng@kylinos.cn 2023-05-05 10:44:11 +08:00
parent 95fbe65de9
commit d569cd205d
1 changed files with 3 additions and 1 deletions

View File

@ -253,7 +253,9 @@ void FileView::mouseReleaseEvent(QMouseEvent *event)
setItemMode(FileView::ItemSelectMode::Edit);
setDownloadBtn(true);
} else {
Q_EMIT sigItemSelectAll(false);
if (m_itemMode == ItemSelectMode::Edit) {
Q_EMIT sigItemSelectAll(false);
}
}
QListView::mouseReleaseEvent(event);
}