aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp')
-rw-r--r--src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp b/src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp
index 71b64b7458..288a5f9cb4 100644
--- a/src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp
+++ b/src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp
@@ -109,13 +109,13 @@ void SshSettingsWidget::saveSettings()
SshSettings::setConnectionSharingEnabled(m_connectionSharingCheckBox.isChecked());
SshSettings::setConnectionSharingTimeout(m_connectionSharingSpinBox.value());
if (m_sshPathChanged)
- SshSettings::setSshFilePath(m_sshChooser.fileName());
+ SshSettings::setSshFilePath(m_sshChooser.filePath());
if (m_sftpPathChanged)
- SshSettings::setSftpFilePath(m_sftpChooser.fileName());
+ SshSettings::setSftpFilePath(m_sftpChooser.filePath());
if (m_askpassPathChanged)
- SshSettings::setAskpassFilePath(m_askpassChooser.fileName());
+ SshSettings::setAskpassFilePath(m_askpassChooser.filePath());
if (m_keygenPathChanged)
- SshSettings::setKeygenFilePath(m_keygenChooser.fileName());
+ SshSettings::setKeygenFilePath(m_keygenChooser.filePath());
SshSettings::storeSettings(Core::ICore::settings());
}
@@ -157,7 +157,7 @@ void SshSettingsWidget::setupPathChooser(PathChooser &chooser, const FilePath &i
bool &changedFlag)
{
chooser.setExpectedKind(PathChooser::ExistingCommand);
- chooser.setFileName(initialPath);
+ chooser.setFilePath(initialPath);
connect(&chooser, &PathChooser::pathChanged, [&changedFlag] { changedFlag = true; });
}