mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Case 21642 - verification dialog when user hits return in goto search
text entry+return should throw up verification dialog for first time to non-optimized domain
This commit is contained in:
parent
70cc6594c7
commit
88a4b5c983
2 changed files with 10 additions and 1 deletions
|
@ -189,4 +189,13 @@ Column {
|
|||
}
|
||||
}
|
||||
}
|
||||
function isStandalone(address) {
|
||||
|
||||
for (var i=0; i < suggestions.count; i++) {
|
||||
if (suggestions.get(i).place_name.toLowerCase() === address.toLowerCase()) {
|
||||
return suggestions.get(i).standalone_optimized;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -230,7 +230,7 @@ StackView {
|
|||
updateLocationText(text.length > 0);
|
||||
}
|
||||
onAccepted: {
|
||||
toggleOrGo();
|
||||
toggleOrGo(addressLine.text, false, places.isStandalone(addressLine.text));
|
||||
}
|
||||
|
||||
// unfortunately TextField from Quick Controls 2 disallow customization of placeHolderText color without creation of new style
|
||||
|
|
Loading…
Reference in a new issue