Showing the changes to interface/src/ui/UpdateDialog.cpp (1 of 3 files). Show all
Unified · Split
| @@ -20,10 +20,9 @@ · 19 unmodified lines | ||
| 20 | 20 | #include "UpdateDialog.h" |
| 21 | 21 | |
| 22 | 22 | 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) { | |
| 27 | 26 | |
| 28 | 27 | QUiLoader updateDialogLoader; |
| 29 | 28 | QWidget* updateDialog; |
| @@ -36,7 +35,7 @@ UpdateDialog::UpdateDialog(QWidget *parent, const QString& releaseNotes, const Q · 6 unmodified lines | ||
| 36 | 35 | .arg(Application::getInstance()->applicationVersion(), latestVersion); |
| 37 | 36 | |
| 38 | 37 | |
| 39 | − setAttribute(Qt::WA_DeleteOnClose); | |
| 38 | + updateDialog->setAttribute(Qt::WA_DeleteOnClose); | |
| 40 | 39 | |
| 41 | 40 | QPushButton* downloadButton = updateDialog->findChild<QPushButton*>("downloadButton"); |
| 42 | 41 | QPushButton* skipButton = updateDialog->findChild<QPushButton*>("skipButton"); |