From eabb63486c12dd0d5da45a5c5ffa64dcfae142c6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Dec 2014 17:10:52 +0300 Subject: Add support for support url in browser box. New browser box variable: %SUPPORTURL% --- src/gui/widgets/browserbox.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 3128cbd61..ff6fe2a8a 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -23,6 +23,8 @@ #include "gui/widgets/browserbox.h" +#include "settings.h" + #include "input/inputmanager.h" #include "gui/gui.h" @@ -198,6 +200,12 @@ void BrowserBox::addRow(const std::string &row, const bool atTop) if (getWidth() < 0) return; + if (mProcessVars) + { + tmp = replaceAll(tmp, "%VER%", SMALL_VERSION); + tmp = replaceAll(tmp, "%SUPPORTURL%", settings.supportUrl); + } + // Use links and user defined colors if (mUseLinksAndUserColors) { @@ -271,9 +279,6 @@ void BrowserBox::addRow(const std::string &row, const bool atTop) newRow = row; } - if (mProcessVars) - newRow = replaceAll(newRow, "%VER%", SMALL_VERSION); - if (mEnableTabs) { idx1 = newRow.find("\\t"); -- cgit v1.2.3-70-g09d2