Konqueror: Fix window title showing as "/" when URL ends with that

Review Request #127138 - Created Feb. 22, 2016 and submitted

Information
Jonathan Marten
kde-baseapps
frameworks
Reviewers
kde-baseapps
dfaure
This happens when a local file URL which ends in "/" is navigated to.  For example, going to "/home/user" correctly shows "user" as the window title, while going to "/home/user/" shows "/" because the fileName() of that URL is empty.  This happens in particular when using the "Up" action, as it goes from "/home/user/foo" to "/home/user/".

This change ensures that trailing slashes are removed from URLs before using fileName() on them.
Built kde-baseapps with these changes, observed correct display of base name in Konqueror window title while navigating.

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
David Faure
Jonathan Marten
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit f868ba3b34b4f55111c3b6fb1ff0e6bcaa1d2797 by Jonathan Marten to branch frameworks.
Loading...