From 53bc0b25c23f8f24d4119ae6fb5ba6ca0a91be19 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 8 Jul 2011 16:36:31 +0300 Subject: Disable map reduce in safe mode. --- src/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client.cpp b/src/client.cpp index f20c08c30..fec408a2f 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1788,6 +1788,7 @@ void Client::storeSafeParameters() std::string secureFont; bool showBackground; bool enableMumble; + bool enableMapReduce; isSafeMode = config.getBoolValue("safemode"); if (isSafeMode) @@ -1815,6 +1816,7 @@ void Client::storeSafeParameters() showBackground = config.getBoolValue("showBackground"); enableMumble = config.getBoolValue("enableMumble"); + enableMapReduce = config.getBoolValue("enableMapReduce"); config.setValue("hwaccel", false); config.setValue("opengl", 0); @@ -1831,6 +1833,7 @@ void Client::storeSafeParameters() config.setValue("secureFont", "fonts/dejavusansmono.ttf"); config.setValue("showBackground", false); config.setValue("enableMumble", false); + config.setValue("enableMapReduce", false); config.write(); @@ -1855,6 +1858,7 @@ void Client::storeSafeParameters() config.setValue("secureFont", secureFont); config.setValue("showBackground", showBackground); config.setValue("enableMumble", enableMumble); + config.setValue("enableMapReduce", enableMapReduce); } void Client::initTradeFilter() -- cgit v1.2.3-70-g09d2