QTfrontend/newnetclient.cpp
changeset 1600 305e13c5f327
parent 1592 5ee77ee470a6
child 1648 32d99a3c7998
--- a/QTfrontend/newnetclient.cpp	Thu Jan 08 15:32:26 2009 +0000
+++ b/QTfrontend/newnetclient.cpp	Thu Jan 08 15:34:51 2009 +0000
@@ -211,17 +211,17 @@
 
 	if (lst[0] == "ERROR") {
 		if (lst.size() == 2)
-			QMessageBox::information(0, 0, "Error: " + lst[1]);
+			emit showMessage("Error: " + lst[1]);
 		else
-			QMessageBox::information(0, 0, "Unknown error");
+			emit showMessage("Unknown error");
 		return;
 	}
 
 	if (lst[0] == "WARNING") {
 		if (lst.size() == 2)
-			QMessageBox::information(0, 0, "Warning: " + lst[1]);
+			emit showMessage("Warning: " + lst[1]);
 		else
-			QMessageBox::information(0, 0, "Unknown warning");
+			emit showMessage("Unknown warning");
 		return;
 	}
 
@@ -334,6 +334,7 @@
 
 	if(lst[0]=="ROOMABANDONED") {
 		netClientState = 2;
+		emit showMessage(HWNewNet::tr("Room destroyed"));
 		emit LeftRoom();
 		return;
 	}