Commit 57909ebe authored by Felix Ernst's avatar Felix Ernst 🇺🇦
Browse files

Revert "portalize drag urls"

This reverts commit 8d7e600f
parent c9ab6517
Pipeline #219634 skipped
......@@ -17,7 +17,6 @@
#include <KTwoFingerSwipe>
#include <KTwoFingerTap>
#include <KUrlMimeData>
#include <QAccessible>
#include <QApplication>
......@@ -1319,11 +1318,10 @@ void KItemListController::startDragging()
return;
}
QMimeData *data = m_model->createMimeData(selectedItems);
QMimeData* data = m_model->createMimeData(selectedItems);
if (!data) {
return;
}
KUrlMimeData::exportUrlsToPortal(data);
// The created drag object will be owned and deleted
// by QApplication::activeWindow().
......
......@@ -162,7 +162,6 @@ void TreeViewContextMenu::populateMimeData(QMimeData* mimeData, bool cut)
bool dummy;
mostLocalUrls.append(m_fileItem.mostLocalUrl(&dummy));
KIO::setClipboardDataCut(mimeData, cut);
KUrlMimeData::exportUrlsToPortal(mimeData);
KUrlMimeData::setUrls(kdeUrls, mostLocalUrls, mimeData);
}
......
......@@ -45,7 +45,6 @@
#include <KLocalizedString>
#include <KMessageBox>
#include <KProtocolManager>
#include <KUrlMimeData>
#include <QAbstractItemView>
#include <QActionGroup>
......@@ -758,14 +757,12 @@ void DolphinView::cutSelectedItemsToClipboard()
{
QMimeData* mimeData = selectionMimeData();
KIO::setClipboardDataCut(mimeData, true);
KUrlMimeData::exportUrlsToPortal(mimeData);
QApplication::clipboard()->setMimeData(mimeData);
}
void DolphinView::copySelectedItemsToClipboard()
{
QMimeData *mimeData = selectionMimeData();
KUrlMimeData::exportUrlsToPortal(mimeData);
QMimeData* mimeData = selectionMimeData();
QApplication::clipboard()->setMimeData(mimeData);
}
......
Supports Markdown
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