mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 12:53:03 +02:00
PR fix
This commit is contained in:
parent
18a6d74165
commit
a4c057b01f
1 changed files with 3 additions and 1 deletions
|
@ -4426,8 +4426,9 @@ void Application::parseVersionXml() {
|
|||
QString releaseNotes;
|
||||
QString latestVersion;
|
||||
QUrl downloadUrl;
|
||||
QObject* sender = QObject::sender();
|
||||
|
||||
QXmlStreamReader xml(qobject_cast<QNetworkReply*>(QObject::sender()));
|
||||
QXmlStreamReader xml(qobject_cast<QNetworkReply*>(sender));
|
||||
while (!xml.atEnd() && !xml.hasError()) {
|
||||
QXmlStreamReader::TokenType token = xml.readNext();
|
||||
|
||||
|
@ -4453,6 +4454,7 @@ void Application::parseVersionXml() {
|
|||
if (!shouldSkipVersion(latestVersion) && applicationVersion() != latestVersion) {
|
||||
new UpdateDialog(_glWidget, releaseNotes, latestVersion, downloadUrl);
|
||||
}
|
||||
sender->deleteLater();
|
||||
}
|
||||
|
||||
bool Application::shouldSkipVersion(QString latestVersion) {
|
||||
|
|
Loading…
Reference in a new issue