mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Qt6 count method has changed return type
From int to qsizetype, and that brakes LTM charts serialization. Since curves count is a small number and to preserve backward compatibility, convert count result to int.
This commit is contained in:
@@ -184,7 +184,7 @@ QDataStream &operator<<(QDataStream &out, const LTMSettings &settings)
|
||||
out<<settings.field2;
|
||||
out<<int(-1);
|
||||
out<<int(LTM_VERSION_NUMBER); // defined in LTMSettings.h
|
||||
out<<settings.metrics.count();
|
||||
out<<int(settings.metrics.count());
|
||||
foreach(MetricDetail metric, settings.metrics) {
|
||||
bool discard = false;
|
||||
out<<metric.type;
|
||||
|
||||
Reference in New Issue
Block a user