Add missing UpdateDialog.cpp file

MD-19678 #time 5m
This commit is contained in:
Robert Knight 2013-08-30 12:04:22 +01:00
parent cbda873a70
commit 84288ddc6c

25
src/UpdateDialog.cpp Normal file
View file

@ -0,0 +1,25 @@
#include "UpdateDialog.h"
UpdateDialog::UpdateDialog()
: m_autoClose(false)
{
}
void UpdateDialog::setAutoClose(bool autoClose)
{
m_autoClose = autoClose;
}
bool UpdateDialog::autoClose() const
{
return m_autoClose;
}
void UpdateDialog::updateFinished()
{
if (m_autoClose)
{
quit();
}
}