--- 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;