summaryrefslogtreecommitdiff
path: root/src/gui/didyouknowwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/didyouknowwindow.cpp')
-rw-r--r--src/gui/didyouknowwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/didyouknowwindow.cpp b/src/gui/didyouknowwindow.cpp
index 9a913a305..b5a7da634 100644
--- a/src/gui/didyouknowwindow.cpp
+++ b/src/gui/didyouknowwindow.cpp
@@ -138,16 +138,16 @@ void DidYouKnowWindow::loadFile(int num)
{
std::string name = helpPath + langs[0] + "/" + file + ".txt";
if (resman->exists(name))
- lines = resman->loadTextFile(name);
+ resman->loadTextFile(name, lines);
if (lines.empty() && langs.size() > 1)
{
name = helpPath + langs[1] + "/" + file + ".txt";
- lines = resman->loadTextFile(name);
+ resman->loadTextFile(name, lines);
}
}
if (lines.empty())
- lines = resman->loadTextFile(helpPath + file + ".txt");
+ resman->loadTextFile(helpPath + file + ".txt", lines);
for (unsigned int i = 0; i < lines.size(); ++i)
mBrowserBox->addRow(lines[i]);