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 | #include "UpdateDialog.h" | 20 | #include "UpdateDialog.h" |
| 21 | 21 | ||
| 22 | UpdateDialog::UpdateDialog(QWidget *parent, const QString& releaseNotes, const QString& latestVersion, const QUrl& downloadURL) : | 22 | UpdateDialog::UpdateDialog(QWidget *parent, const QString& releaseNotes, const QString& latestVersion, const QUrl& downloadURL) : |
| 23 | QWidget(parent, Qt::Widget) { | 23 | QWidget(parent, Qt::Widget), |
| 24 | 24 | _latestVersion(latestVersion), | |
| 25 | _latestVersion = latestVersion; | 25 | _downloadUrl(downloadURL) { |
| 26 | _downloadUrl = downloadURL; | ||
| 27 | 26 | ||
| 28 | QUiLoader updateDialogLoader; | 27 | QUiLoader updateDialogLoader; |
| 29 | QWidget* updateDialog; | 28 | QWidget* updateDialog; |
| @@ -36,7 +35,7 @@ UpdateDialog::UpdateDialog(QWidget *parent, const QString& releaseNotes, const Q · 6 unmodified lines | |||
| 36 | .arg(Application::getInstance()->applicationVersion(), latestVersion); | 35 | .arg(Application::getInstance()->applicationVersion(), latestVersion); |
| 37 | 36 | ||
| 38 | 37 | ||
| 39 | setAttribute(Qt::WA_DeleteOnClose); | 38 | updateDialog->setAttribute(Qt::WA_DeleteOnClose); |
| 40 | 39 | ||
| 41 | QPushButton* downloadButton = updateDialog->findChild<QPushButton*>("downloadButton"); | 40 | QPushButton* downloadButton = updateDialog->findChild<QPushButton*>("downloadButton"); |
| 42 | QPushButton* skipButton = updateDialog->findChild<QPushButton*>("skipButton"); | 41 | QPushButton* skipButton = updateDialog->findChild<QPushButton*>("skipButton"); |