--- a/QTfrontend/newnetclient.cpp Sun Oct 05 23:36:11 2008 +0000
+++ b/QTfrontend/newnetclient.cpp Mon Oct 06 18:07:38 2008 +0000
@@ -173,12 +173,20 @@
if (lst[0] == "ERROR") {
if (lst.size() == 2)
- QMessageBox::information(0, 0, lst[1]);
+ QMessageBox::information(0, 0, "Error: " + lst[1]);
else
QMessageBox::information(0, 0, "Unknown error");
return;
}
+ if (lst[0] == "WARNING") {
+ if (lst.size() == 2)
+ QMessageBox::information(0, 0, "Warning: " + lst[1]);
+ else
+ QMessageBox::information(0, 0, "Unknown warning");
+ return;
+ }
+
if (lst[0] == "CONNECTED") {
m_game_connected=true;
emit Connected();