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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user