[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [muon] libmuon/DetailsTabs: Do not suggest Ubuntu changelog links
From: Jonathan Thomas <echidnaman () kubuntu ! org>
Date: 2011-08-31 23:57:54
Message-ID: 20110831235754.37F99A6078 () git ! kde ! org
[Download RAW message or body]
Git commit 476ef3fb88a8e980e39d1fb05eefbd8855293da8 by Jonathan Thomas.
Committed on 01/09/2011 at 01:57.
Pushed by jmthomas into branch 'master'.
Do not suggest Ubuntu changelog links to non-Ubuntu packages.
M +7 -3 libmuon/DetailsTabs/ChangelogTab.cpp
http://commits.kde.org/muon/476ef3fb88a8e980e39d1fb05eefbd8855293da8
diff --git a/libmuon/DetailsTabs/ChangelogTab.cpp \
b/libmuon/DetailsTabs/ChangelogTab.cpp index 0602bec..0839f20 100644
--- a/libmuon/DetailsTabs/ChangelogTab.cpp
+++ b/libmuon/DetailsTabs/ChangelogTab.cpp
@@ -75,9 +75,13 @@ void ChangelogTab::changelogFetched(KJob *job)
QFile changelogFile(m_jobFilenames[job]);
m_busyWidget->stop();
if (job->error() || !changelogFile.open(QFile::ReadOnly)) {
- m_changelogBrowser->setText(i18nc("@info/rich", "The list of changes is not \
available yet. "
- "Please use <link \
url='%1'>Launchpad</link> instead.",
- \
QString("http://launchpad.net/ubuntu/+source/" + m_package->sourcePackage()))); + \
if (m_package->origin() == QLatin1String("Ubuntu")) { + \
m_changelogBrowser->setText(i18nc("@info/rich", "The list of changes is not yet \
available. " + "Please use <link \
url='%1'>Launchpad</link> instead.", + \
QString("http://launchpad.net/ubuntu/+source/" + m_package->sourcePackage()))); + \
} else { + m_changelogBrowser->setText(i18nc("@info", "The list of changes \
is not yet available.")); + }
}
else {
QTextStream stream(&changelogFile);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic