commit 90f91c3d058610a9532acb4d858f3e810b4c7c39
parent acff47ea50ca5b1e28382eca61019a71db2593b9
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 6 Dec 2015 01:08:07 -0500
don't display stupid things like "downloading 2 of 1"
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/progress.cpp b/src/progress.cpp
@@ -69,7 +69,7 @@ void Progress::updateProgress()
{
if(m_current) {
const string text = "Downloading " +
- to_string(m_done + 1) + " of " + to_string(m_total) + ": " +
+ to_string(min(m_done + 1, m_total)) + " of " + to_string(m_total) + ": " +
m_current->name() + "\n" + m_current->url();
SetWindowText(m_label, text.c_str());