Skip to content

Commit

Permalink
fix: [workspace]Aggregation drag and drop - Single window selects 100…
Browse files Browse the repository at this point in the history
… files in the current directory and drags them to the main directory, resulting in file refresh exception

The No state state of the view is not set in the dropevent event

Log: Aggregation drag and drop - Single window selects 100 files in the current directory and drags them to the main directory, resulting in file refresh exception
Bug: https://pms.uniontech.com/bug-view-274993.html
  • Loading branch information
liyigang1 committed Oct 12, 2024
1 parent ec3bd6e commit 457c671
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,8 @@ void FileView::dragLeaveEvent(QDragLeaveEvent *event)
void FileView::dropEvent(QDropEvent *event)
{
setViewSelectState(false);
if (d->dragDropHelper->drop(event))
return;
d->dragDropHelper->drop(event);
setState(NoState);
}

QModelIndex FileView::indexAt(const QPoint &pos) const
Expand Down

0 comments on commit 457c671

Please sign in to comment.