Skip to content
Snippets Groups Projects
Commit 41208058 authored by Frank Reininghaus's avatar Frank Reininghaus
Browse files

Update the 'isCut' state of items when cutting non-files, e.g., text

BUG: 304615
FIXED-IN: 4.9.4
REVIEW: 107390
parent a6f07452
No related branches found
No related tags found
No related merge requests found
......@@ -55,12 +55,8 @@ KFileItemClipboard::~KFileItemClipboard()
void KFileItemClipboard::updateCutItems()
{
const QMimeData* mimeData = QApplication::clipboard()->mimeData();
const QByteArray data = mimeData->data("application/x-kde-cutselection");
const bool isCutSelection = (!data.isEmpty() && data.at(0) == QLatin1Char('1'));
if (isCutSelection) {
m_cutItems = KUrl::List::fromMimeData(mimeData).toSet();
emit cutItemsChanged();
}
m_cutItems = KUrl::List::fromMimeData(mimeData).toSet();
emit cutItemsChanged();
}
KFileItemClipboard::KFileItemClipboard() :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment