mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Don't delete files on Shift+Drop on Windows.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user