Fix places text when the URL has a trailing slash

Authored by elvisangelaccio on Sep 1 2019, 8:32 PM.

Description

Fix places text when the URL has a trailing slash

Summary: QUrl::fileName() returns an empty string if the URL ends with a slash.

Test Plan:

  1. Run dolphin /tmp from command line
  2. Right-click from viewport and click 'Add to Places'

Reviewers: ngraham

Subscribers: kfm-devel

Tags: Dolphin

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

Details