summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorsenator <senator>2008-03-17 15:15:34 +0000
committersenator <senator>2008-03-17 15:15:34 +0000
commit8dbbc95eb0d2f7dcde8d65fe4ef434ae605ae6e1 (patch)
tree36181b0182b65ceca81ad55a45f8b35584ab0ded /client
parente964b7bff361ca641b0cbde5a21da2dfd991e442 (diff)
messagebox when server not found, then quit
Diffstat (limited to 'client')
-rw-r--r--client/sendrecieve.cc3
1 files changed, 3 insertions, 0 deletions
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 <stdio.h>
#include <QApplication>
+#include <QMessageBox>
#include <QTcpSocket>
#include <QDomDocument>
#include <QByteArray>
@@ -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()