summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-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)