on xenial help sign in
reset selected TZ when switching between filter modes
17d1da9Lukáš Tinkl
qml/Wizard/Pages/50-timezone.qml+6−1
@@ -26,7 +26,7 @@ LocalComponents.Page {
26 title: i18n.tr("Time Zone")
26 title: i18n.tr("Time Zone")
27 forwardButtonSourceComponent: forwardButton
27 forwardButtonSourceComponent: forwardButton
28
28
29− readonly property alias selectedTimeZone: tzModel.selectedZoneId
29+ property alias selectedTimeZone: tzModel.selectedZoneId
30
30
31 TimeZoneModel {
31 TimeZoneModel {
32 id: tzModel
32 id: tzModel
@@ -99,6 +99,11 @@ LocalComponents.Page {
99 anchors.right: parent.right
99 anchors.right: parent.right
100 placeholderText: i18n.tr("Enter your city or country")
100 placeholderText: i18n.tr("Enter your city or country")
101 color: UbuntuColors.lightGrey
101 color: UbuntuColors.lightGrey
102+ onTextChanged: {
103+ if (text == "") { // reset when switching between filter modes (text/country)
104+ selectedTimeZone = ""
105+ }
106+ }
102 }
107 }
103
108
104 ListView {
109 ListView {