QTfrontend/newnetclient.cpp
changeset 431 79ac59673df3
parent 407 c7890ba9ed6e
child 443 eec37eb7f5db
--- a/QTfrontend/newnetclient.cpp	Sun Feb 11 00:18:16 2007 +0000
+++ b/QTfrontend/newnetclient.cpp	Sun Feb 11 11:55:38 2007 +0000
@@ -283,9 +283,17 @@
   connect(game, SIGNAL(SendNet(const QByteArray &)), this, SLOT(SendNet(const QByteArray &)));
   connect(this, SIGNAL(FromNet(const QByteArray &)), game, SLOT(FromNet(const QByteArray &)));
   connect(this, SIGNAL(LocalCFG(const QString &)), game, SLOT(LocalCFG(const QString &)));
+  connect(game, SIGNAL(ErrorMessage(const QString &)), this, SLOT(ShowErrorMessage(const QString &)), Qt::QueuedConnection);
   game->StartNet();
 }
 
+void HWNewNet::ShowErrorMessage(const QString & msg)
+{
+	QMessageBox::warning(0,
+			"Hedgewars",
+			msg);
+}
+
 void HWNewNet::onHedgehogsNumChanged(const HWTeam& team)
 {
   qDebug() << team.getNetID() << ":" << team.numHedgehogs;