[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [muon/qapt2] /: Reset m_lastRealProgress when a transaction finishes. Otherwise we'll get no progres
From:       Jonathan Thomas <echidnaman () kubuntu ! org>
Date:       2012-09-30 18:19:56
Message-ID: 20120930181956.37D35A605D () git ! kde ! org
[Download RAW message or body]

Git commit 579d95e828d41e1ad68087fe0b4f326b4f555348 by Jonathan Thomas.
Committed on 30/09/2012 at 20:19.
Pushed by jmthomas into branch 'qapt2'.

Reset m_lastRealProgress when a transaction finishes. Otherwise we'll get no progress \
info the next time around...

M  +1    -0    muon/TransactionWidget.cpp
M  +1    -0    updater/ProgressWidget.cpp

http://commits.kde.org/muon/579d95e828d41e1ad68087fe0b4f326b4f555348

diff --git a/muon/TransactionWidget.cpp b/muon/TransactionWidget.cpp
index 1a5ddc9..08fbe09 100644
--- a/muon/TransactionWidget.cpp
+++ b/muon/TransactionWidget.cpp
@@ -203,6 +203,7 @@ void TransactionWidget::statusChanged(QApt::TransactionStatus \
status)  m_downloadModel->clear();
         m_headerLabel->setText(i18nc("@info Status information, widget title",
                                      "<title>Finished</title>"));
+        m_lastRealProgress = 0;
     }
 }
 
diff --git a/updater/ProgressWidget.cpp b/updater/ProgressWidget.cpp
index 8231449..66ffda9 100644
--- a/updater/ProgressWidget.cpp
+++ b/updater/ProgressWidget.cpp
@@ -183,6 +183,7 @@ void ProgressWidget::statusChanged(QApt::TransactionStatus \
status)  case QApt::FinishedStatus:
         m_headerLabel->setText(i18nc("@info Status information, widget title",
                                      "<title>Finished</title>"));
+        m_lastRealProgress = 0;
     }
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic