summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/browserbox.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 37abf7d0a..1657968df 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -251,14 +251,11 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
{
const int id = atoi(bLink.link.c_str());
if (id)
- {
- bLink.caption = translator->getStr(
- ItemDB::get(id).getName());
- }
+ bLink.caption = ItemDB::get(id).getName();
else
- {
- bLink.caption = translator->getStr(bLink.link);
- }
+ bLink.caption = bLink.link;
+ if (translator)
+ bLink.caption = translator->getStr(bLink.caption);
}
newRow.append(tmp.substr(0, idx1));