diff options
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/ssltrusteditor.cpp | 5 | ||||
| -rw-r--r-- | src/widgets/ssltrusteditor.ui | 3 |
2 files changed, 7 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() diff --git a/src/widgets/ssltrusteditor.ui b/src/widgets/ssltrusteditor.ui index 8bc55f4..c8b5b8d 100644 --- a/src/widgets/ssltrusteditor.ui +++ b/src/widgets/ssltrusteditor.ui @@ -66,6 +66,9 @@ <property name="cornerButtonEnabled"> <bool>true</bool> </property> + <property name="selectionMode"> + <enum>QAbstractItemView::SingleSelection</enum> + </property> </widget> </item> <item> |
