"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/qgsnewsfeedparser.cpp" between
QGIS-final-3_10_5.tar.gz and QGIS-final-3_10_6.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Long-term release (3.10.x series).

qgsnewsfeedparser.cpp  (QGIS-final-3_10_5):qgsnewsfeedparser.cpp  (QGIS-final-3_10_6)
skipping to change at line 142 skipping to change at line 142
return mAuthCfg; return mAuthCfg;
} }
void QgsNewsFeedParser::fetch() void QgsNewsFeedParser::fetch()
{ {
QNetworkRequest req( mFeedUrl ); QNetworkRequest req( mFeedUrl );
QgsSetRequestInitiatorClass( req, QStringLiteral( "QgsNewsFeedParser" ) ); QgsSetRequestInitiatorClass( req, QStringLiteral( "QgsNewsFeedParser" ) );
mFetchStartTime = QDateTime::currentDateTimeUtc().toTime_t(); mFetchStartTime = QDateTime::currentDateTimeUtc().toTime_t();
QgsNetworkContentFetcherTask *task = new QgsNetworkContentFetcherTask( req, mA // allow canceling the news fetching without prompts -- it's not crucial if th
uthCfg ); is gets finished or not
QgsNetworkContentFetcherTask *task = new QgsNetworkContentFetcherTask( req, mA
uthCfg, QgsTask::CanCancel | QgsTask::CancelWithoutPrompt );
task->setDescription( tr( "Fetching News Feed" ) ); task->setDescription( tr( "Fetching News Feed" ) );
connect( task, &QgsNetworkContentFetcherTask::fetched, this, [this, task] connect( task, &QgsNetworkContentFetcherTask::fetched, this, [this, task]
{ {
QNetworkReply *reply = task->reply(); QNetworkReply *reply = task->reply();
if ( !reply ) if ( !reply )
{ {
// canceled // canceled
return; return;
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)