diff options
author | saturneric <[email protected]> | 2024-12-21 03:12:07 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-21 03:12:07 +0000 |
commit | 8ddcf78c103037ccd1e4b5f3115164583d410aef (patch) | |
tree | 0835ea88dec76abe2ad6c62167989d0d7d27918a /src/ui/widgets/KeyTable.cpp | |
parent | fix: ResizeToContents behaviors of key list (diff) | |
download | GpgFrontend-8ddcf78c103037ccd1e4b5f3115164583d410aef.tar.gz GpgFrontend-8ddcf78c103037ccd1e4b5f3115164583d410aef.zip |
fix: avoid check action triggering the show of key detail dialog
Diffstat (limited to 'src/ui/widgets/KeyTable.cpp')
-rw-r--r-- | src/ui/widgets/KeyTable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/widgets/KeyTable.cpp b/src/ui/widgets/KeyTable.cpp index 542382cf..a1f5db07 100644 --- a/src/ui/widgets/KeyTable.cpp +++ b/src/ui/widgets/KeyTable.cpp @@ -76,6 +76,8 @@ KeyTable::KeyTable(QWidget* parent, QSharedPointer<GpgKeyTableModel> model, }); connect(this, &QTableView::doubleClicked, this, [this](const QModelIndex& index) { + if (!index.isValid() || index.column() == 0) return; + auto key = GpgKeyGetter::GetInstance(model_->GetGpgContextChannel()) .GetKey(GetKeyIdByRow(index.row())); if (!key.IsGood()) { |