Git commit 8803e4a0f9c182eaf41e34f20857bdadadcff9ed by Jonathan Thomas. Committed on 01/09/2011 at 01:38. Pushed by jmthomas into branch 'master'. When switching between multiple packages before their changelogs download, stop the download of the changelog. Otherwise, when they all finally do download they all flash before our eyes before settling on the correct changelog. M +8 -0 libmuon/DetailsTabs/ChangelogTab.cpp http://commits.kde.org/muon/8803e4a0f9c182eaf41e34f20857bdadadcff9ed diff --git a/libmuon/DetailsTabs/ChangelogTab.cpp b/libmuon/DetailsTabs/ChangelogTab.cpp index 1d39d31..0602bec 100644 --- a/libmuon/DetailsTabs/ChangelogTab.cpp +++ b/libmuon/DetailsTabs/ChangelogTab.cpp @@ -55,6 +55,14 @@ ChangelogTab::~ChangelogTab() void ChangelogTab::setPackage(QApt::Package *package) { + // Clean up old jobs + QHash::const_iterator i = m_jobFilenames.constBegin(); + while (i != m_jobFilenames.constEnd()) { + i.key()->kill(); + ++i; + } + m_jobFilenames.clear(); // We don't delete the KJob pointers, they delete themselves + m_package = package; fetchChangelog(); }