summaryrefslogtreecommitdiffstats
path: root/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dialog.cpp')
-rw-r--r--dialog.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/dialog.cpp b/dialog.cpp
index 475a46e9..9af80522 100644
--- a/dialog.cpp
+++ b/dialog.cpp
@@ -559,3 +559,12 @@ void Dialog::on_checkBoxUseTrayIcon_clicked() {
ui->checkBoxHideOnClose->setEnabled(false);
}
}
+
+/**
+ * @brief Dialog::closeEvent
+ * @param event
+ */
+void Dialog::closeEvent(QCloseEvent *event) {
+ // TODO save window size or somethign
+ event->accept();
+}