Showing the changes to interface/src/ui/UpdateDialog.cpp (1 of 4 files). Show all
Unified · Split
| @@ -20,10 +20,12 @@ · 19 unmodified lines | ||
| 20 | 20 | #include "UpdateDialog.h" |
| 21 | 21 | |
| 22 | 22 | UpdateDialog::UpdateDialog(QWidget *parent, QString releaseNotes, QString latestVersion, QUrl downloadURL) : |
| 23 | − QDialog(parent, Qt::Dialog) { | |
| 23 | + QWidget(parent, Qt::Widget) { | |
| 24 | 24 | |
| 25 | 25 | Application* application = Application::getInstance(); |
| 26 | 26 | |
| 27 | + QString _latestVersion(latestVersion); | |
| 28 | + | |
| 27 | 29 | QUiLoader updateDialogLoader; |
| 28 | 30 | |
| 29 | 31 | QFile updateDialogUi("resources/ui/updateDialog.ui"); |
| @@ -57,6 +59,8 @@ void UpdateDialog::handleDownload() { · 27 unmodified lines | ||
| 57 | 59 | } |
| 58 | 60 | |
| 59 | 61 | void UpdateDialog::handleSkip() { |
| 62 | + Application* application = Application::getInstance(); | |
| 63 | + application->skipVersion(_latestVersion); | |
| 60 | 64 | this->close(); |
| 61 | 65 | } |
| 62 | 66 | |