summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-18 17:10:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-18 17:10:52 +0300
commiteabb63486c12dd0d5da45a5c5ffa64dcfae142c6 (patch)
treee4a01101c423739d24f7f205ddfa58b9ae043c91 /src
parent4131fd51d112c1ca88f39cb546917be3a991e9c1 (diff)
downloadplus-eabb63486c12dd0d5da45a5c5ffa64dcfae142c6.tar.gz
plus-eabb63486c12dd0d5da45a5c5ffa64dcfae142c6.tar.bz2
plus-eabb63486c12dd0d5da45a5c5ffa64dcfae142c6.tar.xz
plus-eabb63486c12dd0d5da45a5c5ffa64dcfae142c6.zip
Add support for support url in browser box.
New browser box variable: %SUPPORTURL%
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/browserbox.cpp11
1 files changed, 8 insertions, 3 deletions
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");