Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim file path settings fields prior to save #11633

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading