Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit e2d5c00e authored by Alex Neundorf's avatar Alex Neundorf

-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.

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