diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-05-02 10:03:23 +1000 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-05-02 10:17:17 +0200 |
| commit | b802f1959911d0e486c72268a43f4f6c3eb1b9c7 (patch) | |
| tree | 39c79364933c11563028f35998ac3095e6aa39e2 /src/widgets/ssltrusteditor.cpp | |
| parent | 86959d55a041ad9bf113d0f600d8f0ad5e8220c8 (diff) | |
| download | kristall-b802f1959911d0e486c72268a43f4f6c3eb1b9c7.tar.gz | |
Fix for #233
Diffstat (limited to 'src/widgets/ssltrusteditor.cpp')
| -rw-r--r-- | src/widgets/ssltrusteditor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widgets/ssltrusteditor.cpp b/src/widgets/ssltrusteditor.cpp index 584e926..e740977 100644 --- a/src/widgets/ssltrusteditor.cpp +++ b/src/widgets/ssltrusteditor.cpp @@ -56,7 +56,10 @@ void SslTrustEditor::setTrust(const SslTrust &trust) void SslTrustEditor::on_trust_revoke_selected_clicked() { - this->current_trust.trusted_hosts.remove(this->ui->trusted_hosts->currentIndex()); + const QModelIndex &idx = + static_cast<QSortFilterProxyModel*>(this->ui->trusted_hosts->model()) + ->mapToSource(this->ui->trusted_hosts->currentIndex()); + this->current_trust.trusted_hosts.remove(idx); } void SslTrustEditor::on_trust_enable_ca_clicked() |
