Commit 21638efe authored by Daniel Teske's avatar Daniel Teske Committed by Daniel Teske

Utils::FileName: Fix append("") appending a '/'

Change-Id: I2767a901220711dbba6b34c36e256d282f468778
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 1ce60cb3
......@@ -701,6 +701,8 @@ FileName FileName::relativeChildPath(const FileName &parent) const
/// Appends \a s, ensuring a / between the parts
FileName &FileName::appendPath(const QString &s)
{
if (s.isEmpty())
return *this;
if (!isEmpty() && !QString::endsWith(QLatin1Char('/')))
appendString(QLatin1Char('/'));
appendString(s);
......
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