Created attachment 109957 [details]
Plasma 5.12 beta on Arch Linux here.
When I open dolphin clicking on its icon in apps menu plasma panel shows "Home - Dolphin".
But when I open dolphin using "open folder" feature from Firefox download manager I see "username - Dolphin" in plasma panel.
download a file using Firefox and save it to your home folder
when the download is finished, click on download manager icon aside address bar, click the folder icon to open the destination folder.
See my screenshot.
There's apparently a difference between when opening /home/foo and /home/foo/ (note the trailing slash). In the latter case the special logic for using the places panel name doesn't work and it shows the folder name instead.
Also reproducible with the following steps:
1. Search for a file in KRunner
2. Click the "Open containing folder" button
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.16.80
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.3
Git commit 681d8bb6cd13005236c2f389a09e428204b4dd76 by Elvis Angelaccio, on behalf of Nazar Kalinowski.
Committed on 15/09/2019 at 18:38.
Pushed by elvisangelaccio into branch 'master'.
Fix wrong window titles
Currently dolphin shows a folder's name instead of a "place" name if the current path has trailing slash and place's name doesn't, or vice versa.
This patch fixes this behavior, so that dolphin always shows a "place" name.
The QUrl::FullyEncoded string conversion is required because that's how
the places model stores the places URLs in the XML bookmarks file.
Test configuration: https://imgur.com/a/U4zBp8c
Before (wrong window titles are in red): https://imgur.com/a/dB4xRwo
After (all window titles are correct): https://imgur.com/a/W7virBn
Reviewers: #dolphin, elvisangelaccio
Subscribers: elvisangelaccio, ngraham, kfm-devel
Differential Revision: https://phabricator.kde.org/D23706
M +1 -1 src/dolphinviewcontainer.cpp