diff --git a/fvupdateconfirmdialog.cpp b/fvupdateconfirmdialog.cpp index 2029d7b..954b02c 100644 --- a/fvupdateconfirmdialog.cpp +++ b/fvupdateconfirmdialog.cpp @@ -2,6 +2,7 @@ #include "fvavailableupdate.h" #include "fvupdater.h" #include "ui_fvupdateconfirmdialog.h" +#include FvUpdateConfirmDialog::FvUpdateConfirmDialog(QWidget *parent) : @@ -42,3 +43,9 @@ bool FvUpdateConfirmDialog::UpdateWindowWithCurrentProposedUpdate() return true; } + +void FvUpdateConfirmDialog::closeEvent(QCloseEvent* event) +{ + FvUpdater::sharedUpdater()->updateConfirmationDialogWasClosed(); + event->accept(); +} diff --git a/fvupdateconfirmdialog.h b/fvupdateconfirmdialog.h index 5f72035..19db4ad 100644 --- a/fvupdateconfirmdialog.h +++ b/fvupdateconfirmdialog.h @@ -18,6 +18,8 @@ class FvUpdateConfirmDialog : public QDialog // Update the current update proposal from FvUpdater bool UpdateWindowWithCurrentProposedUpdate(); + void closeEvent(QCloseEvent* event); + private: Ui::FvUpdateConfirmDialog* m_ui; }; diff --git a/fvupdatewindow.cpp b/fvupdatewindow.cpp index 469f601..31a6306 100644 --- a/fvupdatewindow.cpp +++ b/fvupdatewindow.cpp @@ -3,6 +3,7 @@ #include "fvupdater.h" #include "fvavailableupdate.h" #include +#include #include @@ -52,3 +53,9 @@ bool FvUpdateWindow::UpdateWindowWithCurrentProposedUpdate() return true; } + +void FvUpdateWindow::closeEvent(QCloseEvent* event) +{ + FvUpdater::sharedUpdater()->updaterWindowWasClosed(); + event->accept(); +} diff --git a/fvupdatewindow.h b/fvupdatewindow.h index 656686b..58911a6 100644 --- a/fvupdatewindow.h +++ b/fvupdatewindow.h @@ -19,6 +19,8 @@ class FvUpdateWindow : public QWidget // Update the current update proposal from FvUpdater bool UpdateWindowWithCurrentProposedUpdate(); + void closeEvent(QCloseEvent* event); + private: Ui::FvUpdateWindow* m_ui; QGraphicsScene* m_appIconScene;