diff options
author | jak1 <mike.wollmann@gmail.com> | 2021-12-18 22:32:34 +0100 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2021-12-18 22:32:34 +0100 |
commit | f1b95ce0ff54d6a403ba07ad3dc899b638ffade2 (patch) | |
tree | 0e7e6f318ad7abc6d11b4c53c8ebc71c660c2692 /src/gui/widgets/itemlinkhandler.cpp | |
parent | becb122a45942224e597fab88f40d5811e9c825c (diff) | |
download | plus-f1b95ce0ff54d6a403ba07ad3dc899b638ffade2.tar.gz plus-f1b95ce0ff54d6a403ba07ad3dc899b638ffade2.tar.bz2 plus-f1b95ce0ff54d6a403ba07ad3dc899b638ffade2.tar.xz plus-f1b95ce0ff54d6a403ba07ad3dc899b638ffade2.zip |
added ftp:// to url command also @@ftp:/foo.bar|baz@@ fixes #38
Diffstat (limited to 'src/gui/widgets/itemlinkhandler.cpp')
-rw-r--r-- | src/gui/widgets/itemlinkhandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp index 7be4287b5..bb5e3e29a 100644 --- a/src/gui/widgets/itemlinkhandler.cpp +++ b/src/gui/widgets/itemlinkhandler.cpp @@ -187,7 +187,8 @@ void ItemLinkHandler::handleLink(const std::string &link, if (link.empty()) return; - if (strStartWith(link, "http://") || strStartWith(link, "https://")) + if (strStartWith(link, "http://") || strStartWith(link, "https://") || + strStartWith(link, "ftp://")) { handleHttpLink(link, event); } |