diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-31 22:39:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-31 22:39:18 +0300 |
commit | ee6b6986d23f923cac072707825b5e68848cabf3 (patch) | |
tree | bfdea5f6780e2cba4f1a51fd84024c101f630a2c /src | |
parent | 0ccff23713518cbb237dd636ec68320aa097730c (diff) | |
download | plus-ee6b6986d23f923cac072707825b5e68848cabf3.tar.gz plus-ee6b6986d23f923cac072707825b5e68848cabf3.tar.bz2 plus-ee6b6986d23f923cac072707825b5e68848cabf3.tar.xz plus-ee6b6986d23f923cac072707825b5e68848cabf3.zip |
Add default values for per server settings in setup tabs.
Diffstat (limited to 'src')
-rw-r--r-- | src/configmanager.cpp | 1 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_other.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_players.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp index b34688b76..13f917d1e 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -166,6 +166,7 @@ void ConfigManager::initConfiguration() config.init(configPath); logger->log1("init 3"); setConfigDefaults(config); + setConfigDefaults(serverConfig); logger->log("configuration file: " + configPath); } } diff --git a/src/gui/widgets/tabs/setup_other.cpp b/src/gui/widgets/tabs/setup_other.cpp index 656192f18..6587b1172 100644 --- a/src/gui/widgets/tabs/setup_other.cpp +++ b/src/gui/widgets/tabs/setup_other.cpp @@ -306,12 +306,14 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : new SetupItemCheckBox(_("Enable guild bot support and disable native " "guild support"), "", "enableGuildBot", this, "enableGuildBotEvent", + "0", MainConfig_false); // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable manamarket bot support"), "", "enableManaMarketBot", this, "enableManaMarketBotEvent", + "0", MainConfig_false); diff --git a/src/gui/widgets/tabs/setup_players.cpp b/src/gui/widgets/tabs/setup_players.cpp index 97865c91e..c04f6fc67 100644 --- a/src/gui/widgets/tabs/setup_players.cpp +++ b/src/gui/widgets/tabs/setup_players.cpp @@ -181,6 +181,7 @@ Setup_Players::Setup_Players(const Widget2 *const widget) : // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable remote commands"), "", "enableRemoteCommands", this, "enableRemoteCommandsEvent", + "1", MainConfig_false); // TRANSLATORS: settings option |