Commit 2529d2f4 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Fix drags with read-only archives

Commit 6865cef0 broke drags of entries for read-only archives.
Disabling drops should not disable drags as well.

Closes T6566
parent 3a42e240
......@@ -69,7 +69,7 @@ void ArchiveView::expandIfSingleFolder()
void ArchiveView::setDropsEnabled(bool enabled)
{
setAcceptDrops(enabled);
setDragDropMode(enabled ? QAbstractItemView::DragDrop : QAbstractItemView::NoDragDrop);
setDragDropMode(enabled ? QAbstractItemView::DragDrop : QAbstractItemView::DragOnly);
}
void ArchiveView::dragEnterEvent(QDragEnterEvent * event)
......
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