aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/xmlConsoleDialog.cpp
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-10-11 14:53:00 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-10-11 14:53:00 +0000
commit2d7910fdf61c44549610755eb6b2dc8cde3461c9 (patch)
tree5db740853c00bb65b987b4f4d6961606b1d56a2b /examples/GuiClient/xmlConsoleDialog.cpp
parentefaa53642c16dfd5dfc4530202b0210af046c41b (diff)
downloadqxmpp-2d7910fdf61c44549610755eb6b2dc8cde3461c9.tar.gz
enable/disable logging
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)
{