2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +00:00

Don't delete files on Shift+Drop on Windows.

This commit is contained in:
John Preston
2023-06-27 20:27:02 +04:00
parent fda2f56fd8
commit fba1b79252
2 changed files with 4 additions and 2 deletions

View File

@@ -2024,7 +2024,8 @@ void Widget::dropEvent(QDropEvent *e) {
if (_scroll->geometry().contains(e->pos())) {
const auto point = mapToGlobal(e->pos());
if (const auto thread = _inner->updateFromParentDrag(point)) {
e->acceptProposedAction();
e->setDropAction(Qt::CopyAction);
e->accept();
controller()->content()->filesOrForwardDrop(
thread,
e->mimeData());