summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/UpdateDialog.cpp
blob: c56798b4aba41ad06112b437e867d161fb5b2d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "UpdateDialog.h"
#include "ui_UpdateDialog.h"
#include "gui/Platform.h"

UpdateDialog::UpdateDialog(QWidget *parent) : QDialog(parent), ui(new Ui::UpdateDialog)
{
	MultiMCPlatform::fixWM_CLASS(this);
	ui->setupUi(this);
}

UpdateDialog::~UpdateDialog()
{
}

void UpdateDialog::on_btnUpdateLater_clicked()
{
	reject();
}

void UpdateDialog::on_btnUpdateNow_clicked()
{
	done(UPDATE_NOW);
}

void UpdateDialog::on_btnUpdateOnExit_clicked()
{
	done(UPDATE_ONEXIT);
}