Commit fa5e37af authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

Bug 366568 - when dragging & dropping folders, contained files are opened as blank / new.

CHANGELOG: Fix drag & drop of folder into Kate window

BUG: 366568
parent 50c65651
......@@ -731,10 +731,11 @@ void KateMainWindow::slotListRecursiveEntries(KIO::Job *job, const KIO::UDSEntry
{
const QUrl dir = static_cast<KIO::SimpleJob *>(job)->url();
foreach(const KIO::UDSEntry & entry, list) {
QUrl currentUrl = dir.resolved(QUrl(entry.stringValue(KIO::UDSEntry::UDS_NAME)));
if (!entry.isDir()) {
m_viewManager->openUrl(currentUrl);
QUrl url(dir);
url = url.adjusted(QUrl::StripTrailingSlash);
url.setPath(url.path() + QLatin1Char('/') + entry.stringValue(KIO::UDSEntry::UDS_NAME));
m_viewManager->openUrl(url);
}
}
}
......
Supports Markdown
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