diff options
author | senator <senator> | 2008-03-17 15:15:34 +0000 |
---|---|---|
committer | senator <senator> | 2008-03-17 15:15:34 +0000 |
commit | 8dbbc95eb0d2f7dcde8d65fe4ef434ae605ae6e1 (patch) | |
tree | 36181b0182b65ceca81ad55a45f8b35584ab0ded /client | |
parent | e964b7bff361ca641b0cbde5a21da2dfd991e442 (diff) |
messagebox when server not found, then quit
Diffstat (limited to 'client')
-rw-r--r-- | client/sendrecieve.cc | 3 |
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() |