Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37593625
en ru br
ALT Linux repos
S:3.32.3-alt1

Group :: Sciences/Geosciences
RPM: qgis3

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: qgis-no-politics.patch
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
     {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin