diff options
author | Saturneric <[email protected]> | 2022-11-26 11:19:19 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-11-26 11:19:19 +0000 |
commit | cb299a2b9c18bf80879045f8e99489d7146d9eaf (patch) | |
tree | 87bf2161c1a2b9e9a97eb7ce6ee0cb63d6ff9ef2 /src/ui/dialog/keypair_details/KeyDetailsDialog.cpp | |
parent | feat(doc): update contract info (diff) | |
download | GpgFrontend-cb299a2b9c18bf80879045f8e99489d7146d9eaf.tar.gz GpgFrontend-cb299a2b9c18bf80879045f8e99489d7146d9eaf.zip |
fix: record the actural size
1. record the actural size of dialogs and main windows when they are closing
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyDetailsDialog.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyDetailsDialog.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp b/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp index 9c2f8003..ed578aa7 100644 --- a/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp @@ -55,8 +55,12 @@ KeyDetailsDialog::KeyDetailsDialog(const GpgKey& key, QWidget* parent) this->setLayout(mainLayout); this->setWindowTitle(_("Key Details")); this->setModal(true); - this->setMinimumSize({520, 600}); - this->resize(this->minimumSize()); + + // this->setMinimumSize({520, 600}); + + // move to center of the parent + this->movePosition2CenterOfParent(); + this->show(); } } // namespace GpgFrontend::UI |