From ecd2386b857c629c03e6a82610ba0801639a4da1 Mon Sep 17 00:00:00 2001 From: senator Date: Tue, 18 Mar 2008 13:59:00 +0000 Subject: updated socket handling to also include soecketError=0 --- client/sendrecieve.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/sendrecieve.cc') diff --git a/client/sendrecieve.cc b/client/sendrecieve.cc index 8d6caf4..25a50d0 100644 --- a/client/sendrecieve.cc +++ b/client/sendrecieve.cc @@ -126,6 +126,10 @@ void SendRecieve::myError(QAbstractSocket::SocketError socketError) // slot tcpConnected = TCP_ERROR; printf("socket_error: %d\n", socketError); switch (socketError) { + case 0 : + QMessageBox::information(NULL, tr("Pracro"), tr("Couldn't connect to server.\nPlease contact a system administrator to resolve the problem.")); + exit(1); + break; case 2 : QMessageBox::information(NULL, tr("Pracro"), tr("Couldn't connect to server.\nPlease contact a system administrator to resolve the problem.")); exit(1); -- cgit v1.2.3