From ed3a977346009c22c30908a9e7b81f409d310b59 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Sep 2016 21:47:37 +0300 Subject: Add support for links "news" and "copyright". Use for links in didyouknow window ItemLinkHandler. --- src/gui/widgets/itemlinkhandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gui/widgets/itemlinkhandler.cpp') diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp index 47314ca5c..6207775f0 100644 --- a/src/gui/widgets/itemlinkhandler.cpp +++ b/src/gui/widgets/itemlinkhandler.cpp @@ -198,6 +198,15 @@ void ItemLinkHandler::handleLink(const std::string &link, { handleCommandLink(link, "="); } + else if (link == "news") + { + if (helpWindow) + helpWindow->loadHelpSimple("news"); + } + if (link == "copyright") + { + inputManager.executeAction(InputAction::WINDOW_ABOUT); + } else { handleItemLink(link); -- cgit v1.2.3-60-g2f50