mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 02:17:11 +02:00
Re-add customUrl.startWith
This commit is contained in:
parent
14b91aa04b
commit
65706ae5f7
1 changed files with 29 additions and 27 deletions
|
@ -3577,6 +3577,7 @@ void Application::takeSnapshot() {
|
|||
void Application::urlGoTo(int argc, const char * constArgv[]) {
|
||||
//Gets the url (hifi://domain/destination/orientation)
|
||||
QString customUrl = getCmdOption(argc, constArgv, "-url");
|
||||
if(customUrl.startsWith(CUSTOM_URL_SCHEME + "//")) {
|
||||
QStringList urlParts = customUrl.remove(0, CUSTOM_URL_SCHEME.length() + 2).split('/', QString::SkipEmptyParts);
|
||||
if (urlParts.count() == 1) {
|
||||
// location coordinates or place name
|
||||
|
@ -3604,4 +3605,5 @@ void Application::urlGoTo(int argc, const char * constArgv[]) {
|
|||
Menu::goToOrientation(orientation);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue