Skip to content

Commit

Permalink
Trim file path settings fields prior to save
Browse files Browse the repository at this point in the history
* Fixes #11630
  • Loading branch information
droidmonkey committed Jan 26, 2025
1 parent 4d7eae3 commit 831704f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/browser/BrowserSettingsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions src/sshagent/AgentSettingsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 831704f

Please sign in to comment.