aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/GeneralMainWindow.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-13 19:33:31 +0000
committersaturneric <[email protected]>2025-04-13 19:33:31 +0000
commit7ca18eb0e2c4204f749c682b66c862968e8d2f58 (patch)
treeba8e0303ebc6ec376b1be580408d9cd91f58f2d8 /src/ui/main_window/GeneralMainWindow.cpp
parentfeat: add openpgp smart card support (diff)
downloadGpgFrontend-7ca18eb0e2c4204f749c682b66c862968e8d2f58.tar.gz
GpgFrontend-7ca18eb0e2c4204f749c682b66c862968e8d2f58.zip
feat: add SmartCardController
Diffstat (limited to 'src/ui/main_window/GeneralMainWindow.cpp')
-rw-r--r--src/ui/main_window/GeneralMainWindow.cpp3
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;