Commit d4801147 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Prevent drops from non-local URLs

Ark can only compress local files.

BUG: 409835
FIXED-IN: 19.08.3
parent f340276e
......@@ -107,6 +107,13 @@ void ArchiveView::dragMoveEvent(QDragMoveEvent * event)
QTreeView::dragMoveEvent(event);
if (event->mimeData()->hasFormat(QStringLiteral("text/uri-list"))) {
const auto urls = event->mimeData()->urls();
for (const auto &url : urls) {
if (!url.isLocalFile()) {
return;
}
}
event->acceptProposedAction();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment