Fix FileName::appendPath (and through that Qt abi detection on Mac)

appendPath was actually not ensuring a '/' between the parts, contrary
to what it claimed.

Change-Id: I80b703160fc05c099db9b461366c91a55525038b
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
This commit is contained in:
Eike Ziller
2012-01-18 10:39:02 +01:00
parent 075c598f92
commit 841d5a9939

View File

@@ -532,7 +532,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 (!QString::endsWith(QLatin1Char('/')))
append(QLatin1Char('/'));
append(s);
return *this;