diff options
Diffstat (limited to 'src/ui/main_window/GeneralMainWindow.cpp')
-rw-r--r-- | src/ui/main_window/GeneralMainWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/main_window/GeneralMainWindow.cpp b/src/ui/main_window/GeneralMainWindow.cpp index 76eda3fc..ebd4049f 100644 --- a/src/ui/main_window/GeneralMainWindow.cpp +++ b/src/ui/main_window/GeneralMainWindow.cpp @@ -42,6 +42,9 @@ GpgFrontend::UI::GeneralMainWindow::GeneralMainWindow(QString id, : QMainWindow(parent), id_(std::move(id)) { UIModuleManager::GetInstance().RegisterQObject(id_, this); slot_restore_settings(); + + // should delete itself at closing by default + setAttribute(Qt::WA_DeleteOnClose); } GpgFrontend::UI::GeneralMainWindow::~GeneralMainWindow() = default; |