mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Fix multi-arg warnings
This commit is contained in:
parent
749cc48cd7
commit
fe98b20adb
@ -195,12 +195,10 @@ void Export::writeValues()
|
||||
// Construct dataset title from group, dataset title & units
|
||||
QString title;
|
||||
if (datasetUnits.isEmpty())
|
||||
title = QString("(%1) %2").arg(groupTitle).arg(datasetTitle);
|
||||
title = QString("(%1) %2").arg(groupTitle, datasetTitle);
|
||||
else
|
||||
title = QString("(%1) %2 [%3]")
|
||||
.arg(groupTitle)
|
||||
.arg(datasetTitle)
|
||||
.arg(datasetUnits);
|
||||
.arg(groupTitle, datasetTitle, datasetUnits);
|
||||
|
||||
// Add dataset title & value to lists
|
||||
titles.append(title);
|
||||
|
@ -113,7 +113,7 @@ bool Dataset::read(const QJsonObject &object)
|
||||
widget = widget.replace("\n", "");
|
||||
widget = widget.replace("\r", "");
|
||||
|
||||
if (!value.isEmpty())
|
||||
if (!value.isEmpty() && !title.isEmpty())
|
||||
{
|
||||
m_graph = graph;
|
||||
m_title = title;
|
||||
|
Loading…
x
Reference in New Issue
Block a user