From aaf59cece54b985d1997186bf9ffab45600a56e5 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Wed, 29 May 2013 17:24:59 +0200 Subject: [PATCH] Wizard: Normalize directory separators --- src/mirall/owncloudwizard.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/mirall/owncloudwizard.cpp b/src/mirall/owncloudwizard.cpp index 4e8679ab54..7e6e20fa4d 100644 --- a/src/mirall/owncloudwizard.cpp +++ b/src/mirall/owncloudwizard.cpp @@ -262,10 +262,12 @@ void OwncloudSetupPage::slotHandleUserInput() _ui.pbSelectLocalFolder->setText(locFolder); if( _remoteFolder.isEmpty() || _remoteFolder == QLatin1String("/") ) { - t = tr("Your entire account will be synced to the local folder '%1'.").arg(locFolder); + t = tr("Your entire account will be synced to the local folder '%1'.") + .arg(QDir::toNativeSeparators(locFolder)); } else { t = tr("%1 folder '%2' is synced to local folder '%3'") - .arg(Theme::instance()->appName()).arg(_remoteFolder).arg(locFolder); + .arg(Theme::instance()->appName()).arg(_remoteFolder) + .arg(QDir::toNativeSeparators(locFolder)); } if ( _multipleFoldersExist ) { @@ -457,9 +459,11 @@ void OwncloudWizardResultPage::initializePage() const QString localFolder = wizard()->property("localFolder").toString(); QString text; if( _remoteFolder == QLatin1String("/") || _remoteFolder.isEmpty() ) { - text = tr("Your entire account is synced to the local folder %1").arg(localFolder); + text = tr("Your entire account is synced to the local folder %1") + .arg(QDir::toNativeSeparators(localFolder)); } else { - text = tr("ownCloud folder %1 is synced to local folder %2").arg(_remoteFolder).arg(localFolder); + text = tr("ownCloud folder %1 is synced to local folder %2") + .arg(_remoteFolder).arg(QDir::toNativeSeparators(localFolder)); } _ui.localFolderLabel->setText( text );