Skip to content

Commit

Permalink
fix: [workspace]show editor issue
Browse files Browse the repository at this point in the history
click one of multi selected items should not show rename editor

Log: fix rename editor issue
Bug: https://pms.uniontech.com/bug-view-219275.html
  • Loading branch information
Lighto-Ku authored and max-lvs committed Sep 21, 2023
1 parent be655a6 commit 340c903
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,9 @@ void FileView::onHeaderViewSectionChanged(const QUrl &url)

bool FileView::edit(const QModelIndex &index, QAbstractItemView::EditTrigger trigger, QEvent *event)
{
if (selectedIndexCount() > 1)
return false;

return DListView::edit(index, trigger, event);
}

Expand Down

0 comments on commit 340c903

Please sign in to comment.