From 0449406450890b18f1356cc5e12953e5d54f65fe Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Thu, 15 Nov 2018 14:16:05 +0100 Subject: [PATCH] Fix warning --- src/RemoteModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RemoteModel.cpp b/src/RemoteModel.cpp index 43bfa766..1e7ac605 100644 --- a/src/RemoteModel.cpp +++ b/src/RemoteModel.cpp @@ -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; }