mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:07:52 +02:00
Fix format
This commit is contained in:
parent
6d1f4ed942
commit
d489e9dcd4
1 changed files with 4 additions and 5 deletions
|
@ -3552,11 +3552,11 @@ void Application::takeSnapshot() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::urlGoTo(int argc, const char * constArgv[]) {
|
void Application::urlGoTo(int argc, const char * constArgv[]) {
|
||||||
//Gets the url (hifi://domain/destination/orientation)
|
//Gets the url (hifi://domain/destination/orientation)
|
||||||
QString customUrl = getCmdOption(argc, constArgv, "-url");
|
QString customUrl = getCmdOption(argc, constArgv, "-url");
|
||||||
|
|
||||||
if (customUrl.startsWith("hifi://")) {
|
if (customUrl.startsWith("hifi://")) {
|
||||||
QStringList urlParts = customUrl.remove(0, CUSTOM_URL_SCHEME.length() + 2).split('/', QString::SkipEmptyParts);
|
QStringList urlParts = customUrl.remove(0, CUSTOM_URL_SCHEME.length() + 2).split('/', QString::SkipEmptyParts);
|
||||||
if (urlParts.count() > 1) {
|
if (urlParts.count() > 1) {
|
||||||
// if url has 2 or more parts, the first one is domain name
|
// if url has 2 or more parts, the first one is domain name
|
||||||
QString domain = urlParts[0];
|
QString domain = urlParts[0];
|
||||||
|
@ -3583,6 +3583,5 @@ void Application::urlGoTo(int argc, const char * constArgv[]) {
|
||||||
QString destination = urlParts[0];
|
QString destination = urlParts[0];
|
||||||
Menu::goTo(destination);
|
Menu::goTo(destination);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue