diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-17 19:28:51 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-17 19:28:51 +0200 |
commit | 177eade2d2c09e8a9ef4c320a0f0426d2480e07b (patch) | |
tree | d4c9220ce6016fe82dbe40009d944d0d4cda5bed /src/NetUtils.cpp | |
parent | 42de171702b8a52a01661a25db56dde44f3754d6 (diff) |
Add ctrl+i to either open urls in browser or reverse image search. Also fix ctrl+c copy with missing title
Diffstat (limited to 'src/NetUtils.cpp')
-rw-r--r-- | src/NetUtils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/NetUtils.cpp b/src/NetUtils.cpp index de908b1..f120cc0 100644 --- a/src/NetUtils.cpp +++ b/src/NetUtils.cpp @@ -1636,6 +1636,8 @@ namespace QuickMedia { // Also checks for balanced parentheses to allow text such as: (see: example.com/) that excludes the last parenthesis. std::vector<Range> extract_urls(const std::string &str) { std::vector<Range> ranges; + if(str.empty()) + return ranges; int parentheses_depth = 0; bool is_valid_url = false; |