summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 20d1803f8..a925c0712 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -51,7 +51,8 @@ BrowserBox::BrowserBox(unsigned int mode, bool opaque):
mWidth(0),
mYStart(0),
mUpdateTime(-1),
- mAlwaysUpdate(true)
+ mAlwaysUpdate(true),
+ mProcessVersion(false)
{
setFocusable(true);
addMouseListener(this);
@@ -136,6 +137,9 @@ void BrowserBox::addRow(const std::string &row, bool atTop)
newRow = row;
}
+ if (mProcessVersion)
+ newRow = replaceAll(newRow, "%VER%", SMALL_VERSION);
+
if (atTop)
mTextRows.push_front(newRow);
else