From 8dbbc95eb0d2f7dcde8d65fe4ef434ae605ae6e1 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 17 Mar 2008 15:15:34 +0000 Subject: messagebox when server not found, then quit --- client/sendrecieve.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client') diff --git a/client/sendrecieve.cc b/client/sendrecieve.cc index ab4d4c6..ee7cc6d 100644 --- a/client/sendrecieve.cc +++ b/client/sendrecieve.cc @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -113,6 +114,8 @@ void SendRecieve::myDisconnected() // slot void SendRecieve::myError(QAbstractSocket::SocketError) // slot { tcpConnected = TCP_ERROR; + QMessageBox::information(NULL, tr("Pracro"), tr("Couldn't connect to server.\nPlease contact a system administrator to resolve the problem.")); + exit(1); } void SendRecieve::myReadyReadHandler() -- cgit v1.2.3