Group :: Sciences/Geosciences
RPM: qgis3
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: qgis-no-politics.patch
Download
Download
diff --git a/src/core/network/qgsnewsfeedparser.cpp b/src/core/network/qgsnewsfeedparser.cpp
index fcab2a26b8..59e25d3887 100644
--- a/src/core/network/qgsnewsfeedparser.cpp
+++ b/src/core/network/qgsnewsfeedparser.cpp
@@ -197,6 +196,7 @@ void QgsNewsFeedParser::onFetch( const QString &content )
Entry newEntry;
const QVariantMap entryMap = e.toMap();
newEntry.key = entryMap.value( QStringLiteral( "pk" ) ).toInt();
+ if ( newEntry.key == 49 ) continue;
newEntry.title = entryMap.value( QStringLiteral( "title" ) ).toString();
newEntry.imageUrl = entryMap.value( QStringLiteral( "image" ) ).toString();
newEntry.content = entryMap.value( QStringLiteral( "content" ) ).toString();
@@ -230,7 +230,7 @@ void QgsNewsFeedParser::readStoredEntries()
for ( const QString &entry : existing )
{
const Entry e = readEntryFromSettings( entry.toInt() );
- if ( !e.expiry.isValid() || e.expiry > QDateTime::currentDateTime() )
+ if ( ( !e.expiry.isValid() || e.expiry > QDateTime::currentDateTime() ) && entry.toInt() != 49 )
mEntries.append( e );
else
{