From 84288ddc6cf79d309143e7e56f2b677ad87d0a31 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Fri, 30 Aug 2013 12:04:22 +0100 Subject: [PATCH] Add missing UpdateDialog.cpp file MD-19678 #time 5m --- src/UpdateDialog.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/UpdateDialog.cpp diff --git a/src/UpdateDialog.cpp b/src/UpdateDialog.cpp new file mode 100644 index 0000000..5f181a1 --- /dev/null +++ b/src/UpdateDialog.cpp @@ -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(); + } +} +