diff options
author | saturneric <[email protected]> | 2025-04-12 11:36:45 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-12 11:36:45 +0000 |
commit | e0264d85090dd119d48df28477db2fe3b17eb60a (patch) | |
tree | e7711bfe4f03c4b97eb2f37129b07a9ec5eb85d1 /src/ui/dialog/keypair_details/KeyDetailsDialog.cpp | |
parent | fix: wrong ui dialog order after switching apps (diff) | |
download | GpgFrontend-e0264d85090dd119d48df28477db2fe3b17eb60a.tar.gz GpgFrontend-e0264d85090dd119d48df28477db2fe3b17eb60a.zip |
refactor: GpgKey and GpgSubKey
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyDetailsDialog.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyDetailsDialog.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp b/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp index d48cbdb7..b3cb3a9d 100644 --- a/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyDetailsDialog.cpp @@ -41,24 +41,24 @@ KeyDetailsDialog::KeyDetailsDialog(int channel, const GpgKey& key, : GeneralDialog(typeid(KeyDetailsDialog).name(), parent), current_gpg_context_channel_(channel) { tab_widget_ = new QTabWidget(); - tab_widget_->addTab(new KeyPairDetailTab(current_gpg_context_channel_, - key.GetId(), tab_widget_), - tr("KeyPair")); + tab_widget_->addTab( + new KeyPairDetailTab(current_gpg_context_channel_, key.ID(), tab_widget_), + tr("KeyPair")); if (!key.IsRevoked()) { - tab_widget_->addTab(new KeyPairUIDTab(current_gpg_context_channel_, - key.GetId(), tab_widget_), - tr("UIDs")); + tab_widget_->addTab( + new KeyPairUIDTab(current_gpg_context_channel_, key.ID(), tab_widget_), + tr("UIDs")); tab_widget_->addTab(new KeyPairSubkeyTab(current_gpg_context_channel_, - key.GetId(), tab_widget_), + key.ID(), tab_widget_), tr("Keychain")); tab_widget_->addTab(new KeyPairOperaTab(current_gpg_context_channel_, - key.GetId(), tab_widget_), + key.ID(), tab_widget_), tr("Operations")); } - QString m_key_id = key.GetId(); + QString m_key_id = key.ID(); connect(UISignalStation::GetInstance(), &UISignalStation::SignalKeyRevoked, this, [this, m_key_id](const QString& key_id) { if (key_id == m_key_id) this->close(); |