Commit 2d43e456 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

When working with directories, use the actual directory to get the cwd instead of the parent.

BUG: 258453
parent 4b50220a
......@@ -147,7 +147,14 @@ QString revisionInterval(const KDevelop::VcsRevision& rev, const KDevelop::VcsRe
return ret;
QDir urlDir(const KUrl& url) { return QFileInfo(url.toLocalFile()).absoluteDir(); }
QDir urlDir(const KUrl& url)
QFileInfo f(url.toLocalFile());
return QDir(url.toLocalFile());
return f.absoluteDir();
QDir urlDir(const KUrl::List& urls) { return urlDir(urls.first()); } //TODO: could be improved
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