This is about dolphin-16.12.2-1 in Arch. Created items are selected correctly at first. However, after going up from a folder to its parent, created items aren't selected in the parent folder anymore. I played with the code and found the cause. After going up, for some reason unknown to me, the url argument of "DolphinView::observeCreatedItem(const QUrl& url)" gets a double slash before its last part, like this: QUrl("file:///home/pedram/Documents//Text File") The issue can be fixed (worked around) by using "QUrl::adjusted()", like this: void DolphinView::observeCreatedItem(const QUrl& url) { if (m_active) { QUrl realUrl = url.adjusted(QUrl::NormalizePathSegments); clearSelection(); markUrlAsCurrent(realUrl); markUrlsAsSelected({realUrl}); } }
Hi, can you please provide a patch and submit it at https://phabricator.kde.org/differential/diff/create/ ?
There's no registration button at https://phabricator.kde.org/differential/diff/create/ (for now?)
BTW, this is a just workaround; why that double slash, in the first place?
Added the patch at https://git.reviewboard.kde.org/r/130001/
The problem of url's with double slashed is more fundamental than https://git.reviewboard.kde.org/r/130001/. For example, Folder View creates such url's easily. I think something basic in KDE's url handling is a little buggy.
This does still happen with Dolphin 18.04 -> confirmed. As @Tsu Jan said, the issue lies deeper than within observeCreatedItem() - if somebody want to investigate this then please go ahead.
Cant reproduce, seems to be fixed.