summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp2
-rw-r--r--src/defaults.cpp1
-rw-r--r--src/gui/widgets/tabs/setup_other.cpp4
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");