ErrorDialog: Clear messages on close instead of hide

Fixes an issue where the error dialog is cleared because the hide event gets triggered.
This commit is contained in:
Jonas Kvinge
2023-08-07 19:38:48 +02:00
parent d1b4736ef9
commit bfb95d503a
3 changed files with 10 additions and 7 deletions

View File

@@ -29,7 +29,7 @@
#include <QString>
#include <QStringList>
class QHideEvent;
class QCloseEvent;
class Ui_ErrorDialog;
class ErrorDialog : public QDialog {
@@ -43,7 +43,7 @@ class ErrorDialog : public QDialog {
void ShowMessage(const QString &message);
protected:
void hideEvent(QHideEvent*) override;
void closeEvent(QCloseEvent *e) override;
private:
void UpdateContent();