summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sshkeys/sshkeys.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/noncore/settings/sshkeys/sshkeys.cpp b/noncore/settings/sshkeys/sshkeys.cpp
index 88acf94..c5e1170 100644
--- a/noncore/settings/sshkeys/sshkeys.cpp
+++ b/noncore/settings/sshkeys/sshkeys.cpp
@@ -50,2 +50,4 @@ SSHKeysApp::SSHKeysApp( QWidget* parent, const char* name, WFlags fl )
this, SLOT(log_sshadd_output(OProcess*,char*,int)));
+ connect(&addprocess, SIGNAL(receivedStderr(OProcess*,char*,int)),
+ this, SLOT(log_sshadd_output(OProcess*,char*,int)));
connect(&addprocess, SIGNAL(processExited(OProcess*)),
@@ -89,2 +91,4 @@ void SSHKeysApp::doRefreshListButton()
this, SLOT(get_list_keys_output(OProcess*,char*,int)));
+ connect(&sshadd_process, SIGNAL(receivedStderr(OProcess*,char*,int)),
+ this, SLOT(log_sshadd_output(OProcess*,char*,int)));
@@ -103,3 +107,2 @@ void SSHKeysApp::doRefreshListButton()
if (sshadd_process.exitStatus() == 2) {
- log_text(tr("Connection to ssh-agent failed"));
setEnabled(FALSE);
@@ -190,5 +193,4 @@ void SSHKeysApp::ssh_add_exited(OProcess *proc)
setEnabled(TRUE);
- if (proc->exitStatus()) {
-
- log_text(QString(tr("ssh-add failed")));
+ if (proc->exitStatus() == 2) {
+ setEnabled(FALSE);
}
@@ -241,2 +243,4 @@ void SSHKeysApp::doRemoveAllButton()
this, SLOT(log_sshadd_output(OProcess*,char*,int)));
+ connect(&sshadd_process, SIGNAL(receivedStderr(OProcess*,char*,int)),
+ this, SLOT(log_sshadd_output(OProcess*,char*,int)));