aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp')
-rw-r--r--src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp b/src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp
index e3ffd91e98..9165ee56c8 100644
--- a/src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp
+++ b/src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp
@@ -196,7 +196,7 @@ GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::GenericLinuxDeviceConfig
deployLayout->addStretch();
mainLayout->addLayout(deployLayout);
connect(&d->keyFileChooser, &PathChooser::pathChanged, this, [this, deployButton] {
- deployButton->setEnabled(d->keyFileChooser.fileName().exists());
+ deployButton->setEnabled(d->keyFileChooser.filePath().exists());
d->iconLabel.clear();
emit completeChanged();
});
@@ -227,15 +227,15 @@ void GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::initializePage()
bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::isComplete() const
{
- return d->keyFileChooser.path().isEmpty() || d->keyFileChooser.fileName().exists();
+ return d->keyFileChooser.filePath().toString().isEmpty() || d->keyFileChooser.filePath().exists();
}
bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::validatePage()
{
- if (!d->defaultKeys().contains(d->keyFileChooser.path())) {
+ if (!d->defaultKeys().contains(d->keyFileChooser.filePath().toString())) {
SshConnectionParameters sshParams = d->device->sshParameters();
sshParams.authenticationType = SshConnectionParameters::AuthenticationTypeSpecificKey;
- sshParams.privateKeyFile = d->keyFileChooser.path();
+ sshParams.privateKeyFile = d->keyFileChooser.filePath().toString();
d->device->setSshParameters(sshParams);
}
return true;
@@ -243,7 +243,7 @@ bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::validatePage()
QString GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::privateKeyFilePath() const
{
- return d->keyFileChooser.path();
+ return d->keyFileChooser.filePath().toString();
}
void GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::createKey()