aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/ssltrusteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/ssltrusteditor.cpp')
-rw-r--r--src/widgets/ssltrusteditor.cpp5
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()