summaryrefslogtreecommitdiffstats
path: root/src/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui.h b/src/gui.h
index 58f0c54..c4a4b39 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -19,6 +19,9 @@ public:
explicit Gui(const char *urlbase, const char *uuid, QWidget *parent = nullptr);
~Gui();
+protected:
+ virtual void closeEvent(QCloseEvent *event) override;
+
private slots:
void pushedCancel(bool pushed);
void pushedOk(bool pushed);
@@ -32,6 +35,7 @@ private:
QString _remoteState;
QString _urlStatus, _urlAbort, _urlFinish;
bool _denyInteraction;
+ bool _allowClose;
QPushButton *_btnAbort, *_btnOk;
QTimer *_tmrStatus;
QHash<QString, Progress*> _items;