From 92c208c003505905bd48d22413809bcdd33d5b5c Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Sun, 13 Mar 2016 19:21:24 +0100 Subject: [PATCH] Fixes #3350: sync dialog new line was not translated --- companion/src/process_sync.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/process_sync.cpp b/companion/src/process_sync.cpp index 3b1df0c30..9a1a53e5b 100644 --- a/companion/src/process_sync.cpp +++ b/companion/src/process_sync.cpp @@ -94,7 +94,7 @@ QString SyncProcess::updateEntry(const QString & path, const QDir & source, cons else { if (!destinationInfo.exists()) { // qDebug() << "Copy" << path << "to" << destinationPath; - progress->addText(tr("Copy %1 to %2\n").arg(path).arg(destinationPath)); + progress->addText(tr("Copy %1 to %2").arg(path).arg(destinationPath) + "\n"); if (!QFile::copy(path, destinationPath)) { return QObject::tr("Copy '%1' to '%2' failed").arg(path).arg(destinationPath); } @@ -120,7 +120,7 @@ QString SyncProcess::updateEntry(const QString & path, const QDir & source, cons if (!destinationFile.open(QFile::WriteOnly)) { return QObject::tr("Write '%1' failed").arg(destinationPath); } - progress->addText(tr("Write %1\n").arg(destinationPath)); + progress->addText(tr("Write %1").arg(destinationPath) + "\n"); // qDebug() << "Write" << destinationPath; QTextStream destinationStream(&destinationFile); destinationStream << sourceContents;