diff options
author | saturneric <[email protected]> | 2024-07-30 17:33:21 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-07-30 17:33:21 +0000 |
commit | 02edad4c989f60e248657bb7854253f8297db583 (patch) | |
tree | 0fa307c34d270f42ba1ad90da819c259d744f283 /src/ui/dialog/keypair_details/KeyDetailsDialog.cpp | |
parent | feat: should check build capability at dev branch (diff) | |
download | GpgFrontend-02edad4c989f60e248657bb7854253f8297db583.tar.gz GpgFrontend-02edad4c989f60e248657bb7854253f8297db583.zip |
fix: use standard os detection macro
Diffstat (limited to '')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyDetailsDialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp b/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp index 6fa3b2d3..927a4553 100644 --- a/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp @@ -61,9 +61,10 @@ KeyDetailsDialog::KeyDetailsDialog(const GpgKey& key, QWidget* parent) auto* main_layout = new QVBoxLayout; main_layout->addWidget(tab_widget_); -#ifdef MACOS +#if defined(__APPLE__) && defined(__MACH__) setAttribute(Qt::WA_LayoutUsesWidgetRect); #endif + this->setAttribute(Qt::WA_DeleteOnClose, true); this->setLayout(main_layout); this->setWindowTitle(tr("Key Details")); |