From 0c6809ad24bce28c8ae587d646c0287be88de101 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 26 Mar 2014 00:29:02 +0300 Subject: Add option to hide support page link in error dialog. --- src/client.cpp | 2 +- src/defaults.cpp | 1 + src/gui/widgets/tabs/setup_other.cpp | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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 @@ -333,6 +333,10 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : new SetupItemCheckBox(_("Enable server side attack"), "", "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"); -- cgit v1.2.3-60-g2f50