From bbb207277a1f8ca1deb69116f20523fcedf05c64 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 17 Jan 2018 20:17:06 +0900 Subject: Fix a mistake reported by Clang static analyzer --- room.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'room.cpp') diff --git a/room.cpp b/room.cpp index 6b7484e9..3481f684 100644 --- a/room.cpp +++ b/room.cpp @@ -110,13 +110,13 @@ class Room::Private void update(qint64 p, qint64 t) { - progress = p; total = t; if (t == 0) { t = -1; if (p == 0) p = -1; } + progress = p; total = t; } }; void failedTransfer(const QString& tid, const QString& errorMessage = {}) -- cgit v1.2.3