-rw-r--r-- | noncore/settings/sshkeys/sshkeys.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/noncore/settings/sshkeys/sshkeys.cpp b/noncore/settings/sshkeys/sshkeys.cpp index d8b1014..57118c9 100644 --- a/noncore/settings/sshkeys/sshkeys.cpp +++ b/noncore/settings/sshkeys/sshkeys.cpp | |||
@@ -39,9 +39,8 @@ | |||
39 | 39 | ||
40 | using namespace Opie::Core; | 40 | using namespace Opie::Core; |
41 | static char *keynames[] = { "identity", "id_rsa", "id_dsa" }; | 41 | static const char *keynames[] = { "identity", "id_rsa", "id_dsa" }; |
42 | 42 | ||
43 | SSHKeysApp::SSHKeysApp( QWidget* parent, const char* name, WFlags fl ) | 43 | |
44 | : SSHKeysBase( parent, name, fl ) | 44 | static void detachTerminal() { |
45 | { | ||
46 | /* If we had a controlling TTY, detach from it. | 45 | /* If we had a controlling TTY, detach from it. |
47 | This is to ensure that SSH uses ssh-askpass */ | 46 | This is to ensure that SSH uses ssh-askpass */ |
@@ -51,4 +50,12 @@ SSHKeysApp::SSHKeysApp( QWidget* parent, const char* name, WFlags fl ) | |||
51 | close(fd); | 50 | close(fd); |
52 | } | 51 | } |
52 | } | ||
53 | |||
54 | |||
55 | SSHKeysApp::SSHKeysApp( QWidget* parent, const char* name, WFlags fl ) | ||
56 | : SSHKeysBase( parent, name, fl ) | ||
57 | { | ||
58 | detachTerminal(); | ||
59 | |||
53 | 60 | ||
54 | QCString home = QFile::encodeName( QDir::homeDirPath() ); | 61 | QCString home = QFile::encodeName( QDir::homeDirPath() ); |