diff options
author | hjk <[email protected]> | 2021-08-17 16:36:42 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2021-08-19 08:33:22 +0000 |
commit | 584217a52f23212d1d56a2beda95ea4438c33aeb (patch) | |
tree | 4703c37de7523a3149864bd9687862163417a762 /src/libs/ssh/sshkeycreationdialog.cpp | |
parent | 6e8c4aa835273d4bf4d5c35f54e3c613a3542420 (diff) |
Use more FileUtils based file dialogs
Change-Id: I1e7ec0493c26afe58e17afb8923a2b1023f6dcd4
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/libs/ssh/sshkeycreationdialog.cpp')
-rw-r--r-- | src/libs/ssh/sshkeycreationdialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/ssh/sshkeycreationdialog.cpp b/src/libs/ssh/sshkeycreationdialog.cpp index 538315850a7..ed4a4547a4b 100644 --- a/src/libs/ssh/sshkeycreationdialog.cpp +++ b/src/libs/ssh/sshkeycreationdialog.cpp @@ -34,12 +34,13 @@ #include <QApplication> #include <QDir> #include <QFile> -#include <QFileDialog> #include <QFileInfo> #include <QMessageBox> #include <QProcess> #include <QStandardPaths> +using namespace Utils; + namespace QSsh { SshKeyCreationDialog::SshKeyCreationDialog(QWidget *parent) @@ -112,9 +113,9 @@ void SshKeyCreationDialog::generateKeys() void SshKeyCreationDialog::handleBrowseButtonClicked() { - const QString filePath = QFileDialog::getSaveFileName(this, tr("Choose Private Key File Name")); + const FilePath filePath = FileUtils::getSaveFilePath(this, tr("Choose Private Key File Name")); if (!filePath.isEmpty()) - setPrivateKeyFile(filePath); + setPrivateKeyFile(filePath.toString()); } void SshKeyCreationDialog::setPrivateKeyFile(const QString &filePath) |