13
0

Return null if deserializing an export timespan doesn't succeed with at least one range.

This should fix an issue with loading old sessions using the old way of
handling session ranges specially.
This commit is contained in:
Sakari Bergen 2013-05-26 21:25:22 +03:00
parent 0a364fd991
commit b01ff11b04

View File

@ -437,6 +437,10 @@ ExportProfileManager::deserialize_timespan (XMLNode & root)
state->time_format = (TimeFormat) string_2_enum (prop->value(), TimeFormat);
}
if (state->timespans->empty()) {
return TimespanStatePtr();
}
return state;
}