summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_other.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 16:34:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 16:58:46 +0300
commit38659dbd75d81edbe336d5311a1cd1184d359b7e (patch)
tree919c97a5e48c5e9287250eab34cb36ef5f02c21e /src/gui/widgets/tabs/setup_other.cpp
parentc1ba61eb566a0a1a2532690ba3bf7e6498bee06b (diff)
downloadmv-38659dbd75d81edbe336d5311a1cd1184d359b7e.tar.gz
mv-38659dbd75d81edbe336d5311a1cd1184d359b7e.tar.bz2
mv-38659dbd75d81edbe336d5311a1cd1184d359b7e.tar.xz
mv-38659dbd75d81edbe336d5311a1cd1184d359b7e.zip
add support for ignore packets logging.
Option for coma separated packet ids added in misc tab.
Diffstat (limited to 'src/gui/widgets/tabs/setup_other.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_other.cpp7
1 files changed, 7 insertions, 0 deletions
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"
@@ -364,6 +366,10 @@ Setup_Other::Setup_Other(const Widget2 *const widget) :
"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()