summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-16 15:12:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-16 15:12:15 +0300
commit1500000ac63b0a51760e85498a106f2673714a97 (patch)
tree60b5027f15c8ff6fb5cc8778e89fe51ba4a3611b /src
parent41b919754cf7551b7e8ee9c3a6906fe994ca55ca (diff)
downloadmanaverse-1500000ac63b0a51760e85498a106f2673714a97.tar.gz
manaverse-1500000ac63b0a51760e85498a106f2673714a97.tar.bz2
manaverse-1500000ac63b0a51760e85498a106f2673714a97.tar.xz
manaverse-1500000ac63b0a51760e85498a106f2673714a97.zip
Add http handler to did you know window.
Diffstat (limited to 'src')
-rw-r--r--src/gui/didyouknowwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/didyouknowwindow.cpp b/src/gui/didyouknowwindow.cpp
index c9a3fcad7..9928cb8fb 100644
--- a/src/gui/didyouknowwindow.cpp
+++ b/src/gui/didyouknowwindow.cpp
@@ -37,6 +37,7 @@
#include "utils/gettext.h"
#include "utils/langs.h"
+#include "utils/process.h"
#include "utils/translation/podict.h"
#include "utils/translation/translationmanager.h"
@@ -119,6 +120,8 @@ void DidYouKnowWindow::action(const gcn::ActionEvent &event)
void DidYouKnowWindow::handleLink(const std::string &link A_UNUSED,
gcn::MouseEvent *event A_UNUSED)
{
+ if (strStartWith(link, "http://") || strStartWith(link, "https://"))
+ openBrowser(link);
}
void DidYouKnowWindow::loadData(int num)