Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix typo

Halla Remptdb7dc32b083b
diff --git a/libs/ui/widgets/KisNewsWidget.cpp b/libs/ui/widgets/KisNewsWidget.cpp
index ae73baf95d..b1143eb5e2 100644
--- a/libs/ui/widgets/KisNewsWidget.cpp
+++ b/libs/ui/widgets/KisNewsWidget.cpp
@@ -118,14 +118,14 @@ void KisNewsWidget::toggleNewsLanguage(QString langCode, bool enabled)
// Sanity check: Since the code is adding the language code directly into
// the URL, this prevents any nasty surprises with malformed URLs.
Q_FOREACH(const char &ch, langCode.toLatin1()) {
- bool isValidChar = (ch >= 'a' && ch <= 'z') || ch == '-' || ch = '@';
+ bool isValidChar = ((ch >= 'a' && ch <= 'z') || ch == '-' || ch == '@');
if (!isValidChar) {
warnUI << "Ignoring attempt to toggle malformed news lang:" << langCode;
return;
}
}
- QString feed = QStringLiteral("https://krita.org/%1/feed/").arg(langCode);
+ QString feed = QStringLiteral("https://krita.org/%1/index.html").arg(langCode);
if (enabled) {
m_enabledFeeds.insert(feed);
if (m_getNews) {