diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-22 10:08:47 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-22 10:13:52 +0200 |
commit | cfc5cfb0f0d074774b17adcb88aaed11e6847c92 (patch) | |
tree | e2e45db192bc450888caadb3ab2241f10404f30c /src/qt/utilitydialog.h | |
parent | 6b09bc45b12465dc8511f1e84791e3b4db5400b8 (diff) |
qt: Make splash and shutdown window ignore close events
It's strange to be able to close these windows while there is work
in progress.
Also set Qt::WA_DeleteOnClose on both windows to make sure that they
are deleted eventually, no matter what happens.
Diffstat (limited to 'src/qt/utilitydialog.h')
-rw-r--r-- | src/qt/utilitydialog.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qt/utilitydialog.h b/src/qt/utilitydialog.h index 154bb70b8b..ae5045cca9 100644 --- a/src/qt/utilitydialog.h +++ b/src/qt/utilitydialog.h @@ -37,12 +37,16 @@ private slots: /** "Shutdown" window */ -class ShutdownWindow : public QObject +class ShutdownWindow : public QWidget { Q_OBJECT public: + ShutdownWindow(QWidget *parent=0, Qt::WindowFlags f=0); static void showShutdownWindow(BitcoinGUI *window); + +protected: + void closeEvent(QCloseEvent *event); }; #endif // UTILITYDIALOG_H |