mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 14:46:55 +02:00
Merge pull request #15145 from roxanneskelly/StandaloneTags
Case 21642 - verification dialog when user hits return in goto search
This commit is contained in:
commit
c3b8f6ed93
2 changed files with 11 additions and 1 deletions
|
@ -189,4 +189,14 @@ Column {
|
|||
}
|
||||
}
|
||||
}
|
||||
function isStandalone(address) {
|
||||
var lowerAddress = address.toLowerCase();
|
||||
|
||||
for (var i=0; i < suggestions.count; i++) {
|
||||
if (suggestions.get(i).place_name.toLowerCase() === lowerAddress) {
|
||||
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