aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/xmlConsoleDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/GuiClient/xmlConsoleDialog.cpp')
-rw-r--r--examples/GuiClient/xmlConsoleDialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/GuiClient/xmlConsoleDialog.cpp b/examples/GuiClient/xmlConsoleDialog.cpp
index 7b603118..e915d53b 100644
--- a/examples/GuiClient/xmlConsoleDialog.cpp
+++ b/examples/GuiClient/xmlConsoleDialog.cpp
@@ -25,6 +25,9 @@ xmlConsoleDialog::~xmlConsoleDialog()
void xmlConsoleDialog::message(QXmppLogger::MessageType type, const QString& text)
{
+ if(!ui->checkBox_enable->isChecked())
+ return;
+
QColor color;
switch(type)
{