Merge "Fix a bug in saving local history of the metrics report." into qt-dev