diff options
author | woglinde <heinold@inf.fu-berlin.de> | 2008-11-27 22:54:56 +0100 |
---|---|---|
committer | woglinde <heinold@inf.fu-berlin.de> | 2008-11-27 22:54:56 +0100 |
commit | bdab38d2b59ee861339a3d166b48bab6a8cfe0f9 (patch) | |
tree | 3eb8615575b73852efe50305659422ee4a6094e2 /packages/qtnx/files/ssh_dnserror.patch | |
parent | b1ae267e2b6beb5e60ded3a23c20788c94054db1 (diff) |
qtnx: add my latets patches from the n810 work
* add patch for keychoose dialog
* integrate the stuff from the dodnx fork
including the nxssh-proxy support
* add patch for choosing the keyboard
* add patch for delete session files
* bump PR
* add patch for detecting ssh dns errors
Diffstat (limited to 'packages/qtnx/files/ssh_dnserror.patch')
-rw-r--r-- | packages/qtnx/files/ssh_dnserror.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/packages/qtnx/files/ssh_dnserror.patch b/packages/qtnx/files/ssh_dnserror.patch new file mode 100644 index 0000000000..b4072c7aca --- /dev/null +++ b/packages/qtnx/files/ssh_dnserror.patch @@ -0,0 +1,51 @@ +Index: qtnx-0.9/qtnxwindow.cpp +=================================================================== +--- qtnx-0.9.orig/qtnxwindow.cpp 2008-11-05 18:53:29.000000000 +0100 ++++ qtnx-0.9/qtnxwindow.cpp 2008-11-05 18:54:39.000000000 +0100 +@@ -271,6 +271,15 @@ + reinitialiseClient(); + } + ++void QtNXWindow::dnsFailed() ++{ ++ QMessageBox::critical(this, tr("DNS Lookup Failure"), ++ tr("Are you really connected to the network?"), QMessageBox::Ok, QMessageBox::NoButton, ++ QMessageBox::NoButton); ++ ++ reinitialiseClient(); ++} ++ + void QtNXWindow::handleAtCapacity() + { + QMessageBox::critical(this, tr("Server at capacity"), +@@ -381,6 +390,7 @@ + publicKey = binaryPath + "/id.key"; + #endif + ++ cout << "invoke backend" << endl; + m_NXClient->invokeNXSSH(publicKey, config.serverHost, config.encryption, "", + config.serverPort); + +@@ -602,6 +612,10 @@ + case NXCL_PROCESS_ERROR: + handleStatus(tr("An error occurred running a helper program")); + break; ++ case NXCL_DNS_ERROR: ++ handleStatus(tr("DNS error occurred")); ++ dnsFailed(); ++ break; + default: + break; + } +Index: qtnx-0.9/qtnxwindow.h +=================================================================== +--- qtnx-0.9.orig/qtnxwindow.h 2008-11-05 18:53:29.000000000 +0100 ++++ qtnx-0.9/qtnxwindow.h 2008-11-05 18:53:29.000000000 +0100 +@@ -122,6 +122,7 @@ + void resumeResumePressed(QString); + void sshContinue(QString); + void failedLogin(); ++ void dnsFailed(); + void showLogWindow(); + void quit(); + private: |