diff --git a/src/browser/BrowserSettingsWidget.cpp b/src/browser/BrowserSettingsWidget.cpp index 5233cf2ac..5a4ccce8d 100644 --- a/src/browser/BrowserSettingsWidget.cpp +++ b/src/browser/BrowserSettingsWidget.cpp @@ -178,7 +178,7 @@ void BrowserSettingsWidget::loadSettings() QString BrowserSettingsWidget::resolveCustomProxyLocation() { auto settings = browserSettings(); - auto proxyLocation = m_ui->customProxyLocation->text(); + auto proxyLocation = m_ui->customProxyLocation->text().trimmed(); proxyLocation = settings->replaceTildeHomePath(proxyLocation); return proxyLocation; } diff --git a/src/sshagent/AgentSettingsWidget.cpp b/src/sshagent/AgentSettingsWidget.cpp index 1a55e14fa..bdad6e30e 100644 --- a/src/sshagent/AgentSettingsWidget.cpp +++ b/src/sshagent/AgentSettingsWidget.cpp @@ -90,9 +90,9 @@ void AgentSettingsWidget::loadSettings() void AgentSettingsWidget::saveSettings() { - auto sshAuthSockOverride = m_ui->sshAuthSockOverrideEdit->text(); + auto sshAuthSockOverride = m_ui->sshAuthSockOverrideEdit->text().trimmed(); sshAgent()->setAuthSockOverride(sshAuthSockOverride); - auto sshSecurityKeyProviderOverride = m_ui->sshSecurityKeyProviderOverrideEdit->text(); + auto sshSecurityKeyProviderOverride = m_ui->sshSecurityKeyProviderOverrideEdit->text().trimmed(); sshAgent()->setSecurityKeyProviderOverride(sshSecurityKeyProviderOverride); #ifdef Q_OS_WIN sshAgent()->setUsePageant(m_ui->usePageantRadioButton->isChecked() || m_ui->useBothRadioButton->isChecked());