summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemlinkhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-26 21:47:37 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-26 21:47:37 +0300
commited3a977346009c22c30908a9e7b81f409d310b59 (patch)
tree0101284761788307a5c231fe0f0466810ee651a1 /src/gui/widgets/itemlinkhandler.cpp
parent4b517a69de505e5f3b0eec2e42d2f5bc5d913faa (diff)
downloadplus-ed3a977346009c22c30908a9e7b81f409d310b59.tar.gz
plus-ed3a977346009c22c30908a9e7b81f409d310b59.tar.bz2
plus-ed3a977346009c22c30908a9e7b81f409d310b59.tar.xz
plus-ed3a977346009c22c30908a9e7b81f409d310b59.zip
Add support for links "news" and "copyright".
Use for links in didyouknow window ItemLinkHandler.
Diffstat (limited to 'src/gui/widgets/itemlinkhandler.cpp')
-rw-r--r--src/gui/widgets/itemlinkhandler.cpp9
1 files changed, 9 insertions, 0 deletions
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);