.arg() needs QStringLiteral

This commit is contained in:
Kurt Hindenburg
2015-10-15 16:40:19 -04:00
parent 5085c4fc45
commit 70818f8c47

View File

@@ -490,7 +490,7 @@ Session* MainWindow::createSSHSession(Profile::Ptr profile, const QUrl& url)
QString sshCommand = QStringLiteral("ssh ");
if (url.port() > -1) {
sshCommand += QLatin1String("-p %1 ").arg(url.port());
sshCommand += QStringLiteral("-p %1 ").arg(url.port());
}
if (!url.userName().isEmpty()) {
sshCommand += (url.userName() + '@');