Fix places text when the URL has a trailing slash
ClosedPublic

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

Details

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'

Diff Detail

Repository
R318 Dolphin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
elvisangelaccio created this revision.Sep 1 2019, 8:35 PM
Restricted Application added a project: Dolphin. · View Herald TranscriptSep 1 2019, 8:35 PM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
elvisangelaccio requested review of this revision.Sep 1 2019, 8:35 PM
ngraham accepted this revision.Sep 1 2019, 11:44 PM

Stable branch, even?

This revision is now accepted and ready to land.Sep 1 2019, 11:44 PM
This revision was automatically updated to reflect the committed changes.