summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius Štikonas <andrius@stikonas.eu>2016-06-30 13:45:10 (GMT)
committerAndrius Štikonas <andrius@stikonas.eu>2016-06-30 13:45:10 (GMT)
commitc10b5898818c6ee818262ced720783d65a759494 (patch)
tree5e1593ec1ea36498a7fd9a1300b0a38860181d0c
parent176adf8cd15d99cb7815b9a4fcdc3d8fcdf1ab53 (diff)
Reenable double clicking on the public or private key to choose it.
-rw-r--r--selectpublickeydialog.cpp4
-rw-r--r--selectsecretkey.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/selectpublickeydialog.cpp b/selectpublickeydialog.cpp
index 09e3c95..dbd7ec2 100644
--- a/selectpublickeydialog.cpp
+++ b/selectpublickeydialog.cpp
@@ -235,8 +235,8 @@ bool KgpgSelectPublicKeyDlg::getHideId() const
void KgpgSelectPublicKeyDlg::slotOk()
{
-// if (getSymmetric() || m_keyslist->selectionModel()->hasSelection())
-// slotButtonClicked(Ok); FIXME: KF5
+ if (getSymmetric() || m_keyslist->selectionModel()->hasSelection())
+ accept();
}
void KgpgSelectPublicKeyDlg::slotSelectionChanged()
diff --git a/selectsecretkey.cpp b/selectsecretkey.cpp
index 1183735..149cd71 100644
--- a/selectsecretkey.cpp
+++ b/selectsecretkey.cpp
@@ -146,6 +146,6 @@ void KgpgSelectSecretKey::slotSelectionChanged()
void KgpgSelectSecretKey::slotOk()
{
-// if (m_keyslist->selectionModel()->hasSelection())
-// slotButtonClicked(Ok); FIXME: KF5
+ if (m_keyslist->selectionModel()->hasSelection())
+ accept();
}