Put current address to location instead of inputfield

This commit is contained in:
Vladyslav Stelmakhovskyi 2017-04-02 20:02:40 +02:00
parent 9cd2717163
commit d207dae5b7

View file

@ -38,7 +38,7 @@ StackView {
root.currentItem.focus = true; root.currentItem.focus = true;
root.currentItem.forceActiveFocus(); root.currentItem.forceActiveFocus();
fillDestinations(); fillDestinations();
updateLocationText(); updateLocationText(false);
root.parentChanged.connect(center); root.parentChanged.connect(center);
center(); center();
} }
@ -62,8 +62,8 @@ StackView {
root.push(card); root.push(card);
return; return;
} }
addressLine.text = targetString; location.text = targetString;
toggleOrGo(true); toggleOrGo(true, targetString);
clearAddressLineTimer.start(); clearAddressLineTimer.start();
} }
@ -539,7 +539,11 @@ StackView {
} }
} }
function toggleOrGo(fromSuggestions) { function toggleOrGo(fromSuggestions, address) {
if (address !== undefined && address !== "") {
addressBarDialog.loadAddress(address, fromSuggestions)
}
if (addressLine.text !== "") { if (addressLine.text !== "") {
addressBarDialog.loadAddress(addressLine.text, fromSuggestions) addressBarDialog.loadAddress(addressLine.text, fromSuggestions)
} }