aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh/sshkeypasswordretriever.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/ssh/sshkeypasswordretriever.cpp')
-rw-r--r--src/libs/ssh/sshkeypasswordretriever.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libs/ssh/sshkeypasswordretriever.cpp b/src/libs/ssh/sshkeypasswordretriever.cpp
index 8f13362363..6631404a03 100644
--- a/src/libs/ssh/sshkeypasswordretriever.cpp
+++ b/src/libs/ssh/sshkeypasswordretriever.cpp
@@ -34,20 +34,16 @@
namespace QSsh {
namespace Internal {
-std::string SshKeyPasswordRetriever::get_passphrase(const std::string &, const std::string &,
- UI_Result &result) const
+std::string get_passphrase()
{
const bool hasGui = dynamic_cast<QApplication *>(QApplication::instance());
if (hasGui) {
- bool ok;
const QString &password = QInputDialog::getText(0,
QCoreApplication::translate("QSsh::Ssh", "Password Required"),
QCoreApplication::translate("QSsh::Ssh", "Please enter the password for your private key."),
- QLineEdit::Password, QString(), &ok);
- result = ok ? OK : CANCEL_ACTION;
+ QLineEdit::Password, QString());
return std::string(password.toLocal8Bit().data());
} else {
- result = OK;
std::string password;
std::cout << "Please enter the password for your private key (set echo off beforehand!): " << std::flush;
std::cin >> password;