From 37f294533b8288d341f8485649c7cc7d226dfc0d Mon Sep 17 00:00:00 2001 From: dwmw2 Date: Fri, 20 Sep 2002 13:06:34 +0000 Subject: Report ssh-agent failure and disable --- (limited to 'noncore') diff --git a/noncore/settings/sshkeys/sshkeys.cpp b/noncore/settings/sshkeys/sshkeys.cpp index 701356a..3b4dce6 100644 --- a/noncore/settings/sshkeys/sshkeys.cpp +++ b/noncore/settings/sshkeys/sshkeys.cpp @@ -80,7 +80,10 @@ void SSHKeysApp::doRefreshListButton() log_text(tr("Error running ssh-add")); return; } - + if (sshadd_process.exitStatus() == 2) { + log_text(tr("Connection to ssh-agent failed")); + setEnabled(FALSE); + } } void SSHKeysApp::get_list_keys_output(OProcess *proc, char *buffer, int buflen) -- cgit v0.9.0.2