chore: use cutefish cutselection

This commit is contained in:
kateleet 2021-12-28 17:03:19 +08:00
parent 451b27ccaa
commit 46bd8a1215

View file

@ -993,7 +993,7 @@ void FolderModel::paste()
job->start();
// Clear system clipboard.
if (mimeData->hasFormat("application/x-kde-cutselection")) {
if (mimeData->hasFormat("application/x-cutefish-cutselection")) {
QApplication::clipboard()->clear();
}
}
@ -1009,7 +1009,10 @@ void FolderModel::cut()
return;
QMimeData *mimeData = QSortFilterProxyModel::mimeData(m_selectionModel->selectedIndexes());
KIO::setClipboardDataCut(mimeData, true);
mimeData->setData("application/x-kde-cutselection", QByteArray("1"));
mimeData->setData("application/x-cutefish-cutselection", QByteArray("1"));
QApplication::clipboard()->setMimeData(mimeData);
}