Prepend slash to remote folder

This commit is contained in:
Daniel Molkentin 2012-10-05 22:42:21 +02:00
parent 06b2e1f645
commit 0ee938ac9b
2 changed files with 10 additions and 0 deletions

View file

@ -100,6 +100,15 @@ QString ownCloudFolder::secondPath() const
return re;
}
QString ownCloudFolder::nativeSecondPath() const
{
// TODO: fold into secondPath() after 1.1.0 release
QString path = secondPath();
if (!path.startsWith(QLatin1Char('/')) || path.isEmpty())
path.prepend(QLatin1Char('/'));
return path;
}
void ownCloudFolder::startSync()
{
startSync( QStringList() );

View file

@ -35,6 +35,7 @@ public:
const QString &secondPath, QObject *parent = 0L);
virtual ~ownCloudFolder();
QString secondPath() const;
QString nativeSecondPath() const;
virtual bool isBusy() const;
virtual void startSync(const QStringList &pathList);