Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
ad116d95
Commit
ad116d95
authored
Jun 13, 2016
by
David Faure
Browse files
Fix Windows bug: renaming a file in the tree would fail due to "%5C" in the URL ('\')
parent
70317cc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletree.cpp
View file @
ad116d95
...
...
@@ -388,7 +388,7 @@ void KateFileTree::slotRenameFile() {
}
QUrl
newFileUrl
=
oldFileUrl
.
adjusted
(
QUrl
::
RemoveFilename
|
QUrl
::
StripTrailingSlash
);
newFileUrl
.
setPath
(
newFileUrl
.
path
()
+
Q
Dir
::
separator
(
)
+
newFileName
);
newFileUrl
.
setPath
(
newFileUrl
.
path
()
+
Q
Latin1Char
(
'/'
)
+
newFileName
);
if
(
!
newFileUrl
.
isValid
())
{
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment