on xenial help sign in
Some small fixes
commit6297dc31df92fcb920d2b672d0f772d6560a48c9 authorMichael Terry <michael.terry@canonical.com> dateMon 29 Feb 2016, 14:07 (11 years ago) parent4e333ea
2 files changed+2−1
plugins/Wizard/timezonemodel.cpp+1 plugins/Wizard/timezonemodel.h+1−1
plugins/Wizard/timezonemodel.cpp+1
@@ -110,6 +110,7 @@ void TimeZoneLocationModel::filterFinished(GObject *source_object,
110110 if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
111111 TimeZoneLocationModel *model = static_cast<TimeZoneLocationModel *>(user_data);
112112 g_clear_object(&model->m_cancellable);
113+ model->setListUpdating(false);
113114 qWarning() << "Could not filter timezones:" << error->message;
114115 }
115116 return;
plugins/Wizard/timezonemodel.h+1−1
@@ -24,7 +24,7 @@
2424class TimeZoneLocationModel: public QAbstractListModel
2525{
2626 Q_OBJECT
27− Q_PROPERTY(QString listUpdating READ listUpdating NOTIFY listUpdatingChanged)
27+ Q_PROPERTY(bool listUpdating READ listUpdating NOTIFY listUpdatingChanged)
2828 Q_PROPERTY(QString filter READ filter WRITE setFilter NOTIFY filterChanged)
2929 Q_PROPERTY(QString country READ country WRITE setCountry NOTIFY countryChanged)
3030 Q_ENUMS(Roles)