Commit 7fc74b67 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Overwrite dialog: Don't pretend source and dest url are the same

Otherwise it will the dialog will say "origin and source are the same
file", which obviously isn't true

BUGS: 436556
parent ca108117
Pipeline #122439 passed with stage
in 2 minutes and 35 seconds
......@@ -65,8 +65,8 @@ void OverwriteQuery::execute()
options = options | KIO::RenameDialog_MultipleItems;
}
QUrl sourceUrl = QUrl::fromLocalFile(QDir::cleanPath(m_data.value(QStringLiteral("filename")).toString()));
QUrl destUrl = QUrl::fromLocalFile(QDir::cleanPath(m_data.value(QStringLiteral("filename")).toString()));
const QUrl sourceUrl = QUrl(QStringLiteral("ark://%1").arg(destUrl.fileName()));
QPointer<KIO::RenameDialog> dialog = new KIO::RenameDialog(
nullptr,
......
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