summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/updatewindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index 73efc102..42a68afa 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -158,6 +158,10 @@ int updateProgress(void *ptr,
{
std::string labelString(currentFile);
float progress = d/t;
+ if (d < 0)
+ {
+ d = 0.0f;
+ }
std::stringstream progressString("");
progressString << ((int)(progress*100));
labelString += " (" + progressString.str() + "%)";