diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-26 21:47:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-26 21:47:37 +0300 |
commit | ed3a977346009c22c30908a9e7b81f409d310b59 (patch) | |
tree | 0101284761788307a5c231fe0f0466810ee651a1 /src/gui/widgets/itemlinkhandler.cpp | |
parent | 4b517a69de505e5f3b0eec2e42d2f5bc5d913faa (diff) | |
download | mv-ed3a977346009c22c30908a9e7b81f409d310b59.tar.gz mv-ed3a977346009c22c30908a9e7b81f409d310b59.tar.bz2 mv-ed3a977346009c22c30908a9e7b81f409d310b59.tar.xz mv-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.cpp | 9 |
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); |