Diffusion KIO 47340d6a554c

concatPaths: process empty path1 correctly

Authored by aleksejshilin on Apr 24 2018, 9:04 AM.

Description

concatPaths: process empty path1 correctly

Summary:
When path1 was empty (i.e. 'current directory'), concatPaths() used to
return an absolute path /path2 instead of just path2, which broke e.g.
KUrlCompletion in certain cases.

This commit makes concatPaths() return just path2 if path1 is empty.

Reviewers: Frameworks, anthonyfieroni, dfaure

Reviewed By: dfaure

Tags: Frameworks

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

Details

Committed
aleksejshilinApr 28 2018, 5:40 PM
Reviewer
dfaure
Differential Revision
D12490: concatPaths: process empty path1 correctly
Parents
R241:55e7095796f4: Fix failure in autotest jobtest (getInvalidUrl) due to new ASSERT.
Branches
Unknown
Tags
Unknown