Fix warning

This commit is contained in:
Martin Kleusberg
2018-11-15 14:16:05 +01:00
parent b63f1520bc
commit 0449406450

View File

@@ -241,7 +241,7 @@ QVariant RemoteModel::data(const QModelIndex& index, int role) const
while(size >= 1024.0f && it.hasNext())
{
unit = it.next();
size /= 1024.0;
size /= 1024.0f;
}
return QString().setNum(size, 'f', 2).remove(".00") + QString(" ") + unit;
}