fix
This commit is contained in:
@@ -1130,6 +1130,7 @@ void startWindowImpl::networkMessage(QString msg)
|
|||||||
void startWindowImpl::networkMessage(unsigned msgId)
|
void startWindowImpl::networkMessage(unsigned msgId)
|
||||||
{
|
{
|
||||||
QString msgText;
|
QString msgText;
|
||||||
|
bool showMsgBox = true;
|
||||||
|
|
||||||
switch(msgId) {
|
switch(msgId) {
|
||||||
|
|
||||||
@@ -1181,15 +1182,17 @@ void startWindowImpl::networkMessage(unsigned msgId)
|
|||||||
msgText = tr("The player could not be kicked and banned.");
|
msgText = tr("The player could not be kicked and banned.");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default: showMsgBox = false;
|
||||||
;
|
break;
|
||||||
break;
|
}
|
||||||
|
|
||||||
|
if(showMsgBox) {
|
||||||
|
MyMessageBox msgBox(QMessageBox::Information, tr("Server Message"),
|
||||||
|
msgText, QMessageBox::Close, this);
|
||||||
|
// msgBox.setTextFormat(Qt::RichText);
|
||||||
|
msgBox.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
MyMessageBox msgBox(QMessageBox::Information, tr("Server Message"),
|
|
||||||
msgText, QMessageBox::Close, this);
|
|
||||||
// msgBox.setTextFormat(Qt::RichText);
|
|
||||||
msgBox.exec();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user