diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-26 00:29:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-26 00:29:02 +0300 |
commit | 0c6809ad24bce28c8ae587d646c0287be88de101 (patch) | |
tree | df4412be46ae8f4e76be719079ccccc87ccc5223 /src | |
parent | 3d2dfc097a0967eb31f738c7005d08552b17d614 (diff) | |
download | manaverse-0c6809ad24bce28c8ae587d646c0287be88de101.tar.gz manaverse-0c6809ad24bce28c8ae587d646c0287be88de101.tar.bz2 manaverse-0c6809ad24bce28c8ae587d646c0287be88de101.tar.xz manaverse-0c6809ad24bce28c8ae587d646c0287be88de101.zip |
Add option to hide support page link in error dialog.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 2 | ||||
-rw-r--r-- | src/defaults.cpp | 1 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_other.cpp | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index 4dccaf0cc..70f27f773 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2987,7 +2987,7 @@ Window *Client::openErrorDialog(const std::string &header, const std::string &message, const bool modal) { - if (getSupportUrl().empty()) + if (getSupportUrl().empty() || config.getBoolValue("hidesupport")) { return new OkDialog(header, message, DIALOG_ERROR, modal); } diff --git a/src/defaults.cpp b/src/defaults.cpp index 9ec23540f..9601c4346 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -361,6 +361,7 @@ DefaultsData* getConfigDefaults() AddDEF("usepets", true); AddDEF("scale", 1); AddDEF("addwatermark", true); + AddDEF("hidesupport", false); return configData; } diff --git a/src/gui/widgets/tabs/setup_other.cpp b/src/gui/widgets/tabs/setup_other.cpp index e4801506c..ad1f60c8b 100644 --- a/src/gui/widgets/tabs/setup_other.cpp +++ b/src/gui/widgets/tabs/setup_other.cpp @@ -334,6 +334,10 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : "serverAttack", this, "serverAttackEvent"); // TRANSLATORS: settings option + new SetupItemCheckBox(_("Hide support page link on error"), "", + "hidesupport", this, "hidesupportEvent"); + + // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable double clicks"), "", "doubleClick", this, "doubleClickEvent"); |