From 846ec346e0ce9e5683d83628057e613bbe45909e Mon Sep 17 00:00:00 2001 From: doitux Date: Tue, 26 Feb 2013 23:32:47 +0100 Subject: [PATCH] fix --- src/gui/qt/startwindow/startwindowimpl.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/gui/qt/startwindow/startwindowimpl.cpp b/src/gui/qt/startwindow/startwindowimpl.cpp index 2053fdc6..5f562555 100644 --- a/src/gui/qt/startwindow/startwindowimpl.cpp +++ b/src/gui/qt/startwindow/startwindowimpl.cpp @@ -1130,6 +1130,7 @@ void startWindowImpl::networkMessage(QString msg) void startWindowImpl::networkMessage(unsigned msgId) { QString msgText; + bool showMsgBox = true; switch(msgId) { @@ -1181,15 +1182,17 @@ void startWindowImpl::networkMessage(unsigned msgId) msgText = tr("The player could not be kicked and banned."); } break; - default: - ; - break; + default: showMsgBox = false; + 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(); }