History

PR Fixes

Leonardo Murillo committed 12 years ago

Commit b2ef07f1 parent cc147bc3 files · +7 −16Browse files

Showing the changes to interface/src/ui/UpdateDialog.cpp (1 of 3 files). Show all

Unified · Split

interface/src/ui/UpdateDialog.cpp+4−5
@@ -20,10 +20,9 @@ · 19 unmodified lines
2020 #include "UpdateDialog.h"
2121
2222 UpdateDialog::UpdateDialog(QWidget *parent, const QString& releaseNotes, const QString& latestVersion, const QUrl& downloadURL) :
23− QWidget(parent, Qt::Widget) {
24−
25− _latestVersion = latestVersion;
26− _downloadUrl = downloadURL;
23+ QWidget(parent, Qt::Widget),
24+ _latestVersion(latestVersion),
25+ _downloadUrl(downloadURL) {
2726
2827 QUiLoader updateDialogLoader;
2928 QWidget* updateDialog;
@@ -36,7 +35,7 @@ UpdateDialog::UpdateDialog(QWidget *parent, const QString& releaseNotes, const Q · 6 unmodified lines
3635 .arg(Application::getInstance()->applicationVersion(), latestVersion);
3736
3837
39− setAttribute(Qt::WA_DeleteOnClose);
38+ updateDialog->setAttribute(Qt::WA_DeleteOnClose);
4039
4140 QPushButton* downloadButton = updateDialog->findChild<QPushButton*>("downloadButton");
4241 QPushButton* skipButton = updateDialog->findChild<QPushButton*>("skipButton");