Skip to content
Snippets Groups Projects
Commit e2d5c00e authored by Alexander Neundorf's avatar Alexander Neundorf
Browse files

-make "Gp up" work after "Current document folder"

The QUrl already ends with a slash, and appending another slash
somehow breaks the up-action of KDirOperator.
Not sure whether the test endsWith() is necessary, or whether the slash
simply never has to be appended.

Alex
parent 885631dc
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,10 @@ void KateFileBrowser::setDir(QUrl u)
else
newurl = u;
newurl.setPath(newurl.path() + QLatin1Char('/'));
QString path(newurl.path());
if (!path.endsWith(QLatin1Char('/')))
path += QLatin1Char('/');
newurl.setPath(path);
if (!kateFileSelectorIsReadable(newurl)) {
newurl.setPath(newurl.path() + QStringLiteral("../"));
......
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