History

Fix for custom URL schemes

Atlante45 committed 12 years ago

Commit 6592a6d1 parent 28abc6a2 files · +3 −4Browse files

Showing the changes to interface/src/Menu.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Menu.cpp+2−2
@@ -1153,8 +1153,8 @@ void Menu::goTo() { · 1152 unmodified lines
1153}1153}
1154 1154
1155bool Menu::goToURL(QString location) {1155bool 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 name1160 // if url has 2 or more parts, the first one is domain name

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t