From 71bf71e3923564850daf648e888b4e12008f3450 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 15 Jun 2021 11:39:23 +0100 Subject: [PATCH] Only use URI based drag operation --- src/filterHotSpots/FileFilterHotspot.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/filterHotSpots/FileFilterHotspot.cpp b/src/filterHotSpots/FileFilterHotspot.cpp index 87058bcd..01f8d05b 100644 --- a/src/filterHotSpots/FileFilterHotspot.cpp +++ b/src/filterHotSpots/FileFilterHotspot.cpp @@ -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); } -