on xenial help sign in
reset selected TZ when switching between filter modes
commit17d1da96966be0af36c4872d57b1f71072f3cea8 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 20 Jul 2015, 22:18 (11 years ago) parent3fff389
1 file changed+6−1
qml/Wizard/Pages/50-timezone.qml+6−1
qml/Wizard/Pages/50-timezone.qml+6−1
@@ -26,7 +26,7 @@ LocalComponents.Page {
2626 title: i18n.tr("Time Zone")
2727 forwardButtonSourceComponent: forwardButton
2828
29− readonly property alias selectedTimeZone: tzModel.selectedZoneId
29+ property alias selectedTimeZone: tzModel.selectedZoneId
3030
3131 TimeZoneModel {
3232 id: tzModel
@@ -99,6 +99,11 @@ LocalComponents.Page {
9999 anchors.right: parent.right
100100 placeholderText: i18n.tr("Enter your city or country")
101101 color: UbuntuColors.lightGrey
102+ onTextChanged: {
103+ if (text == "") { // reset when switching between filter modes (text/country)
104+ selectedTimeZone = ""
105+ }
106+ }
102107 }
103108
104109 ListView {