From 38659dbd75d81edbe336d5311a1cd1184d359b7e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 16:34:43 +0300 Subject: add support for ignore packets logging. Option for coma separated packet ids added in misc tab. --- src/gui/widgets/tabs/setup_other.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/widgets/tabs') diff --git a/src/gui/widgets/tabs/setup_other.cpp b/src/gui/widgets/tabs/setup_other.cpp index 2c62e179c..ad25127f7 100644 --- a/src/gui/widgets/tabs/setup_other.cpp +++ b/src/gui/widgets/tabs/setup_other.cpp @@ -35,6 +35,8 @@ #include "resources/map/mapconsts.h" +#include "net/net.h" + #include "utils/delete2.h" #include "utils/gettext.h" @@ -363,6 +365,10 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : new SetupItemCheckBox(_("Enable debug log"), "", "debugLog", this, "debugLogEvent"); + // TRANSLATORS: settings option + new SetupItemTextField(_("Ignore logging packets"), "", + "ignorelogpackets", this, "ignorelogpacketsEvent"); + // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable OpenGL log"), "", "debugOpenGL", this, "debugOpenGLEvent"); @@ -423,6 +429,7 @@ void Setup_Other::apply() SetupTabScroll::apply(); logger->setDebugLog(config.getBoolValue("debugLog")); + Net::loadIgnorePackets(); } void Setup_Other::externalUpdated() -- cgit v1.2.3-70-g09d2