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
20#include "UpdateDialog.h"20#include "UpdateDialog.h"
21 21
22UpdateDialog::UpdateDialog(QWidget *parent, const QString& releaseNotes, const QString& latestVersion, const QUrl& downloadURL) :22UpdateDialog::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");