Fix wrong window titles

Authored by nazark on Sep 15 2019, 6:36 PM.

Description

Fix wrong window titles

Summary:
BUG: 389135
FIXED-IN: 19.11.80

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 Plan:
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

Tags: Dolphin

Differential Revision: https://phabricator.kde.org/D23706

Details

Committed
elvisangelaccioSep 15 2019, 6:38 PM
Differential Revision
D23706: Fix wrong window titles
Parents
R318:79bbadb26319: Introduce test for window titles
Branches
Unknown
Tags
Unknown