lost connection to server warning message
authordisplacer
Wed, 07 Feb 2007 14:11:47 +0000
changeset 407 c7890ba9ed6e
parent 406 ea90c6358054
child 408 6c3da4907d00
lost connection to server warning message
QTfrontend/hwform.cpp
QTfrontend/newnetclient.cpp
--- a/QTfrontend/hwform.cpp	Wed Feb 07 00:30:25 2007 +0000
+++ b/QTfrontend/hwform.cpp	Wed Feb 07 14:11:47 2007 +0000
@@ -25,6 +25,7 @@
 #include <QIcon>
 #include <QFile>
 #include <QTextStream>
+#include <QMessageBox>
 
 #include "hwform.h"
 #include "game.h"
@@ -309,6 +310,8 @@
   if (hwnet) {
     hwnet->deleteLater();
     hwnet=0;
+    QMessageBox::warning(this, QMessageBox::tr("Network"), 
+			 QMessageBox::tr("Connection to server is lost"));
   }
   GoBack();
 }
--- a/QTfrontend/newnetclient.cpp	Wed Feb 07 00:30:25 2007 +0000
+++ b/QTfrontend/newnetclient.cpp	Wed Feb 07 14:11:47 2007 +0000
@@ -51,6 +51,7 @@
 
 void HWNewNet::Disconnect()
 {
+  m_game_connected=false;
   NetSocket.disconnectFromHost();
 }