Skip to content

Commit

Permalink
Always request the version info from the Network
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jul 31, 2024
1 parent c551352 commit 1c0484f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/qgsversioninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ QgsVersionInfo::QgsVersionInfo( QObject *parent )

void QgsVersionInfo::checkVersion()
{
QNetworkReply *reply = QgsNetworkAccessManager::instance()->get( QNetworkRequest( QUrl( QStringLiteral( "https://version.qgis.org/version.txt" ) ) ) );
QNetworkRequest request( QUrl( QStringLiteral( "https://version.qgis.org/version.txt" ) ) );
request.setAttribute( QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::AlwaysNetwork );
QNetworkReply *reply = QgsNetworkAccessManager::instance()->get( request );
connect( reply, &QNetworkReply::finished, this, &QgsVersionInfo::versionReplyFinished );
}

Expand Down

0 comments on commit 1c0484f

Please sign in to comment.