From 177eade2d2c09e8a9ef4c320a0f0426d2480e07b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 17 May 2021 19:28:51 +0200 Subject: Add ctrl+i to either open urls in browser or reverse image search. Also fix ctrl+c copy with missing title --- src/NetUtils.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/NetUtils.cpp') 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 extract_urls(const std::string &str) { std::vector ranges; + if(str.empty()) + return ranges; int parentheses_depth = 0; bool is_valid_url = false; -- cgit v1.2.3