Commit 71bf71e3 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Only use URI based drag operation

parent c9811783
......@@ -321,14 +321,6 @@ void FileFilterHotSpot::startDrag()
auto *mimeData = new QMimeData();
mimeData->setUrls({QUrl::fromLocalFile(_filePath)});
auto lowerFilePath = _filePath.toLower();
if (lowerFilePath.endsWith(QStringLiteral("png"))
|| lowerFilePath.endsWith(QStringLiteral("jpg"))
|| lowerFilePath.endsWith(QStringLiteral("jpeg"))) {
mimeData->setImageData(QImage(_filePath));
}
drag->setMimeData(mimeData);
Qt::DropAction result = drag->exec(Qt::CopyAction);
drag->exec(Qt::CopyAction);
}
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