diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-11 14:53:00 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-11 14:53:00 +0000 |
| commit | 2d7910fdf61c44549610755eb6b2dc8cde3461c9 (patch) | |
| tree | 5db740853c00bb65b987b4f4d6961606b1d56a2b /examples/GuiClient/xmlConsoleDialog.cpp | |
| parent | efaa53642c16dfd5dfc4530202b0210af046c41b (diff) | |
| download | qxmpp-2d7910fdf61c44549610755eb6b2dc8cde3461c9.tar.gz | |
enable/disable logging
Diffstat (limited to 'examples/GuiClient/xmlConsoleDialog.cpp')
| -rw-r--r-- | examples/GuiClient/xmlConsoleDialog.cpp | 3 |
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)
{
|
