Skip to content

Commit fe7707d

Browse files
committed
dbhub: Improve file size format
As per suggestion by @chrisjlocke, this commit removes the trailing '.00' bit for round numbers.
1 parent 9108122 commit fe7707d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/RemoteModel.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ QVariant RemoteModel::data(const QModelIndex& index, int role) const
243243
unit = it.next();
244244
size /= 1024.0;
245245
}
246-
return QString().setNum(size, 'f', 2) + " " + unit;
246+
return QString().setNum(size, 'f', 2).remove(".00") + " " + unit;
247247
}
248248
}
249249
}

0 commit comments

Comments
 (0)