summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-03 23:58:07 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-03 23:58:07 +0300
commita57a28014d09abdd695e31acb86a1dbdbedb5faa (patch)
tree2f5469b1f8a8b6fccc213613d7c2ada55a095474 /src
parent98c10803f79ce9decb4a431719e18bb27aac4485 (diff)
downloadmanaverse-a57a28014d09abdd695e31acb86a1dbdbedb5faa.tar.gz
manaverse-a57a28014d09abdd695e31acb86a1dbdbedb5faa.tar.bz2
manaverse-a57a28014d09abdd695e31acb86a1dbdbedb5faa.tar.xz
manaverse-a57a28014d09abdd695e31acb86a1dbdbedb5faa.zip
Add support for help footer.
Diffstat (limited to 'src')
-rw-r--r--src/gui/didyouknowwindow.cpp1
-rw-r--r--src/gui/helpwindow.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/didyouknowwindow.cpp b/src/gui/didyouknowwindow.cpp
index 0dcc01091..50e0f0188 100644
--- a/src/gui/didyouknowwindow.cpp
+++ b/src/gui/didyouknowwindow.cpp
@@ -132,7 +132,6 @@ void DidYouKnowWindow::loadData(int num)
void DidYouKnowWindow::loadFile(int num)
{
const std::string file = strprintf("tips/%d", num);
- const StringVect langs = getLang();
std::string helpPath = branding.getStringValue("helpPath");
if (helpPath.empty())
helpPath = paths.getStringValue("help");
diff --git a/src/gui/helpwindow.cpp b/src/gui/helpwindow.cpp
index d58490491..82a70bca9 100644
--- a/src/gui/helpwindow.cpp
+++ b/src/gui/helpwindow.cpp
@@ -101,6 +101,7 @@ void HelpWindow::loadHelp(const std::string &helpFile)
loadFile("header");
loadFile(helpFile);
+ loadFile("footer");
mScrollArea->setVerticalScrollAmount(0);
setVisible(true);
@@ -108,7 +109,6 @@ void HelpWindow::loadHelp(const std::string &helpFile)
void HelpWindow::loadFile(const std::string &file)
{
- const StringVect langs = getLang();
std::string helpPath = branding.getStringValue("helpPath");
if (helpPath.empty())
helpPath = paths.getStringValue("help");