aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/calendar/qquickdayofweekmodel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/imports/calendar/qquickdayofweekmodel.cpp b/src/imports/calendar/qquickdayofweekmodel.cpp
index 7f75f784..11a9bc3e 100644
--- a/src/imports/calendar/qquickdayofweekmodel.cpp
+++ b/src/imports/calendar/qquickdayofweekmodel.cpp
@@ -63,11 +63,9 @@ void QQuickDayOfWeekModel::setLocale(const QLocale &locale)
{
Q_D(QQuickDayOfWeekModel);
if (d->locale != locale) {
- bool changed = d->locale.firstDayOfWeek() != locale.firstDayOfWeek();
d->locale = locale;
emit localeChanged();
- if (changed)
- emit dataChanged(index(0, 0), index(6, 0));
+ emit dataChanged(index(0, 0), index(6, 0));
}
}