forked from qt-creator/qt-creator
Fix lupdate issues
Change-Id: I7256c8aff5eb77b264b76ba24e79c26ab2924e84 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -1553,13 +1553,15 @@ private:
|
||||
{
|
||||
const FilePath sftpBinary = SshSettings::sftpFilePath();
|
||||
if (!sftpBinary.exists()) {
|
||||
startFailed(tr("\"sftp\" binary \"%1\" does not exist.").arg(sftpBinary.toUserOutput()));
|
||||
startFailed(SshTransferInterface::tr("\"sftp\" binary \"%1\" does not exist.")
|
||||
.arg(sftpBinary.toUserOutput()));
|
||||
return;
|
||||
}
|
||||
|
||||
m_batchFile.reset(new QTemporaryFile(this));
|
||||
if (!m_batchFile->isOpen() && !m_batchFile->open()) {
|
||||
startFailed(tr("Could not create temporary file: %1").arg(m_batchFile->errorString()));
|
||||
startFailed(SshTransferInterface::tr("Could not create temporary file: %1")
|
||||
.arg(m_batchFile->errorString()));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1570,8 +1572,8 @@ private:
|
||||
+ '\n');
|
||||
} else if (direction() == FileTransferDirection::Download) {
|
||||
if (!QDir::root().mkpath(dir.path())) {
|
||||
startFailed(tr("Failed to create local directory \"%1\".")
|
||||
.arg(QDir::toNativeSeparators(dir.path())));
|
||||
startFailed(SshTransferInterface::tr("Failed to create local directory \"%1\".")
|
||||
.arg(QDir::toNativeSeparators(dir.path())));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user