Created attachment 109844 [details] Screencap Clicking the arrow next to a windows server top level share opens all shares available into the top level of the panel view instead of under the share heading. https://imgur.com/a/MrKKF
This is a bug in KFileItemModel::index. It fails to map the expanded URLs to their parent when that parent was originally listed without trailing slash. e.g listDir of smb gives out `smb://ajax.local` and its children will be `smb://ajax.local/Public`. ::index tries to mitigate this by stripping the trailing slash > const QUrl urlToFind = url.adjusted(QUrl::StripTrailingSlash); I am guessing this is noop for smb://ajax.local/ because that slash is technically not trailing but denotes the root. > dolphin(16343)/(default) KFileItemModel::index: urlToFind QUrl("smb://ajax.local/") > dolphin(16343)/(default) KFileItemModel::index: items QHash((QUrl("smb://ajax.local"), 0)(QUrl("smb://ubuntu.local"), 1)) This may well be a bug in QUrl because those urls really should be considered equal, but their may be nuances I'm not aware of. I seem to remember something about scheme-dependent path defaults, which I guess would make "" not necessarily == "/"