Showing the changes to interface/src/Menu.cpp (1 of 2 files). Show all
Unified · Split
| @@ -1153,8 +1153,8 @@ void Menu::goTo() { · 1152 unmodified lines | |||
| 1153 | } | 1153 | } |
| 1154 | 1154 | ||
| 1155 | bool Menu::goToURL(QString location) { | 1155 | bool Menu::goToURL(QString location) { |
| 1156 | if (location.startsWith(CUSTOM_URL_SCHEME + "//")) { | 1156 | if (location.startsWith(CUSTOM_URL_SCHEME + "/")) { |
| 1157 | QStringList urlParts = location.remove(0, CUSTOM_URL_SCHEME.length() + 2).split('/', QString::SkipEmptyParts); | 1157 | QStringList urlParts = location.remove(0, CUSTOM_URL_SCHEME.length()).split('/', QString::SkipEmptyParts); |
| 1158 | 1158 | ||
| 1159 | if (urlParts.count() > 1) { | 1159 | if (urlParts.count() > 1) { |
| 1160 | // if url has 2 or more parts, the first one is domain name | 1160 | // if url has 2 or more parts, the first one is domain name |