From eef708192e340551c37a7307085c77fa326a0a78 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Mon, 26 Oct 2020 18:59:45 +0100 Subject: [PATCH] SSH: Use Utils::PathChooser::browseButtonLabel() for button We have not used this yet to avoid depending on Utils. Now that the depedency is there anyway, we can use this simplification. Change-Id: Ic3ff8174aaebc4da289daf1ab4331a10536cdf98 Reviewed-by: Eike Ziller Reviewed-by: Leena Miettinen Reviewed-by: Christian Kandeler --- src/libs/ssh/sshkeycreationdialog.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libs/ssh/sshkeycreationdialog.cpp b/src/libs/ssh/sshkeycreationdialog.cpp index 9c4fe8db2b2..538315850a7 100644 --- a/src/libs/ssh/sshkeycreationdialog.cpp +++ b/src/libs/ssh/sshkeycreationdialog.cpp @@ -29,6 +29,7 @@ #include "sshsettings.h" #include +#include #include #include @@ -45,12 +46,7 @@ SshKeyCreationDialog::SshKeyCreationDialog(QWidget *parent) : QDialog(parent), m_ui(new Ui::SshKeyCreationDialog) { m_ui->setupUi(this); - // Not using Utils::PathChooser::browseButtonLabel to avoid dependency -#ifdef Q_OS_MAC - m_ui->privateKeyFileButton->setText(tr("Choose...")); -#else - m_ui->privateKeyFileButton->setText(tr("Browse...")); -#endif + m_ui->privateKeyFileButton->setText(Utils::PathChooser::browseButtonLabel()); const QString defaultPath = QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + QLatin1String("/.ssh/qtc_id"); setPrivateKeyFile(defaultPath);