summaryrefslogtreecommitdiffstats
path: root/src/corelib/time
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-08-03 21:20:38 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-08-07 18:04:02 +0200
commit5375489da8fbd8f70a75ce34c1466133e8750dc2 (patch)
tree84ff340058ee8f5c9aaf995cd45fd3b919311a47 /src/corelib/time
parentbb1d888e8e4a38d48f3cfdf7dbc6f14647b12f04 (diff)
QCalendar: actually remember if the registry has been populated
The "populated" variable is otherwise never written into. Change-Id: I979411a19927dc4e7e09c6c36edfb2308f519596 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 3938d932220e70e2dccb81786135acfcf9ea187b) Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/time')
-rw-r--r--src/corelib/time/qcalendar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/time/qcalendar.cpp b/src/corelib/time/qcalendar.cpp
index 32f0a511a3..3c717a4b2e 100644
--- a/src/corelib/time/qcalendar.cpp
+++ b/src/corelib/time/qcalendar.cpp
@@ -123,6 +123,8 @@ struct Registry {
for (int i = 0; i <= int(QCalendar::System::Last); ++i)
(void)QCalendar(QCalendar::System(i));
+
+ populated = true;
}
};