diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/qtnx/files/ssh_dnserror.patch | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/qtnx/files/ssh_dnserror.patch')
-rw-r--r-- | recipes/qtnx/files/ssh_dnserror.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/recipes/qtnx/files/ssh_dnserror.patch b/recipes/qtnx/files/ssh_dnserror.patch new file mode 100644 index 0000000000..b4072c7aca --- /dev/null +++ b/recipes/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: |