Skip to content

Commit

Permalink
Don't spam console for release build
Browse files Browse the repository at this point in the history
  • Loading branch information
thorvald committed Feb 12, 2011
1 parent d694432 commit f6b6f21
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/mumble/MainWindow.cpp
Expand Up @@ -2546,6 +2546,14 @@ void MainWindow::customEvent(QEvent *evt) {

ServerHandlerMessageEvent *shme=static_cast<ServerHandlerMessageEvent *>(evt);

#ifdef QT_NO_DEBUG
#define MUMBLE_MH_MSG(x) case MessageHandler:: x : { \
MumbleProto:: x msg; \
if (msg.ParseFromArray(shme->qbaMsg.constData(), shme->qbaMsg.size())) \
msg##x(msg); \
break; \
}
#else
#define MUMBLE_MH_MSG(x) case MessageHandler:: x : { \
MumbleProto:: x msg; \
if (msg.ParseFromArray(shme->qbaMsg.constData(), shme->qbaMsg.size())) { \
Expand All @@ -2555,7 +2563,7 @@ void MainWindow::customEvent(QEvent *evt) {
} \
break; \
}

#endif
switch (shme->uiType) {
MUMBLE_MH_ALL
}
Expand Down

0 comments on commit f6b6f21

Please sign in to comment.