Commit d8a94880 authored by Grégoire Duvauchelle's avatar Grégoire Duvauchelle Committed by Nate Graham
Browse files

Fix pasting on desktop when a folder is selected

This fixes a bug where using "Paste one file" in the right-click menu of
a folder on the desktop would paste on the desktop instead of into the
selected folder

BUG: 424466
parent cf137a2f
......@@ -1807,7 +1807,13 @@ void FolderModel::openContextMenu(QQuickItem *visualParent, Qt::KeyboardModifier
menu->addSeparator();
menu->addAction(m_actionCollection.action(QStringLiteral("cut")));
menu->addAction(m_actionCollection.action(QStringLiteral("copy")));
menu->addAction(m_actionCollection.action(QStringLiteral("paste")));
if (urls.length() == 1 && items.first().isDir()) {
menu->addAction(m_actionCollection.action(QStringLiteral("pasteto")));
}
else {
menu->addAction(m_actionCollection.action(QStringLiteral("paste")));
}
menu->addSeparator();
menu->addAction(m_actionCollection.action(QStringLiteral("rename")));
menu->addAction(m_actionCollection.action(QStringLiteral("restoreFromTrash")));
......
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