summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-08 16:36:31 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-08 16:36:31 +0300
commit53bc0b25c23f8f24d4119ae6fb5ba6ca0a91be19 (patch)
treeb926376fca02cc9613c420016917a6d98dcc767b
parentcf2a07dfaeae3620c4e97b660b1021f1ff1b4832 (diff)
downloadplus-53bc0b25c23f8f24d4119ae6fb5ba6ca0a91be19.tar.gz
plus-53bc0b25c23f8f24d4119ae6fb5ba6ca0a91be19.tar.bz2
plus-53bc0b25c23f8f24d4119ae6fb5ba6ca0a91be19.tar.xz
plus-53bc0b25c23f8f24d4119ae6fb5ba6ca0a91be19.zip
Disable map reduce in safe mode.
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
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()