summaryrefslogtreecommitdiffstats
path: root/mmc_updater/src/UpdateDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mmc_updater/src/UpdateDialog.cpp')
-rw-r--r--mmc_updater/src/UpdateDialog.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/mmc_updater/src/UpdateDialog.cpp b/mmc_updater/src/UpdateDialog.cpp
new file mode 100644
index 00000000..5f181a1c
--- /dev/null
+++ b/mmc_updater/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();
+ }
+}
+