Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3552,11 +3552,11 @@ void Application::takeSnapshot() { · 3551 unmodified lines | ||
| 3552 | 3552 | } |
| 3553 | 3553 | |
| 3554 | 3554 | void Application::urlGoTo(int argc, const char * constArgv[]) { |
| 3555 | − //Gets the url (hifi://domain/destination/orientation) | |
| 3556 | − QString customUrl = getCmdOption(argc, constArgv, "-url"); | |
| 3555 | + //Gets the url (hifi://domain/destination/orientation) | |
| 3556 | + QString customUrl = getCmdOption(argc, constArgv, "-url"); | |
| 3557 | 3557 | |
| 3558 | − if (customUrl.startsWith("hifi://")) { | |
| 3559 | − QStringList urlParts = customUrl.remove(0, CUSTOM_URL_SCHEME.length() + 2).split('/', QString::SkipEmptyParts); | |
| 3558 | + if (customUrl.startsWith("hifi://")) { | |
| 3559 | + QStringList urlParts = customUrl.remove(0, CUSTOM_URL_SCHEME.length() + 2).split('/', QString::SkipEmptyParts); | |
| 3560 | 3560 | if (urlParts.count() > 1) { |
| 3561 | 3561 | // if url has 2 or more parts, the first one is domain name |
| 3562 | 3562 | QString domain = urlParts[0]; |
| @@ -3583,6 +3583,5 @@ void Application::urlGoTo(int argc, const char * constArgv[]) { · 20 unmodified lines | ||
| 3583 | 3583 | QString destination = urlParts[0]; |
| 3584 | 3584 | Menu::goTo(destination); |
| 3585 | 3585 | } |
| 3586 | − | |
| 3587 | 3586 | } |
| 3588 | 3587 | } |