Commit dab8d6d0 authored by BogDan Vatra's avatar BogDan Vatra Committed by Daniel Teske
Browse files

Don't add a '/' if the filename is empty



Change-Id: I66d530d70cac17365f3d5925eb76318fe774470f
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent c9a31bed
......@@ -554,7 +554,7 @@ FileName FileName::relativeChildPath(const FileName &parent) const
/// Appends \a s, ensuring a / between the parts
FileName &FileName::appendPath(const QString &s)
{
if (!QString::endsWith(QLatin1Char('/')))
if (!isEmpty() && !QString::endsWith(QLatin1Char('/')))
append(QLatin1Char('/'));
append(s);
return *this;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment