diff options
-rw-r--r-- | src/libs/ssh/sshkeycreationdialog.cpp | 8 |
1 files 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 <utils/fileutils.h> +#include <utils/pathchooser.h> #include <QApplication> #include <QDir> @@ -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); |