Commit ad116d95 authored by David Faure's avatar David Faure

Fix Windows bug: renaming a file in the tree would fail due to "%5C" in the URL ('\')

parent 70317cc0
......@@ -388,7 +388,7 @@ void KateFileTree::slotRenameFile() {
}
QUrl newFileUrl = oldFileUrl.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash);
newFileUrl.setPath(newFileUrl.path() + QDir::separator() + newFileName);
newFileUrl.setPath(newFileUrl.path() + QLatin1Char('/') + newFileName);
if (!newFileUrl.isValid()) {
return;
......
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