summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius Štikonas <andrius@stikonas.eu>2016-07-01 14:39:58 (GMT)
committerAndrius Štikonas <andrius@stikonas.eu>2016-07-01 14:39:58 (GMT)
commit044c49a47a1cdc4409e57c29311249c83d3cf98e (patch)
tree9410d96e32a00499a5721a98c9d2fd93ddc6f10e
parenta624b3a3dd93581b78b23332181592d87c0015e1 (diff)
Fix broken connection.
-rw-r--r--keyservers.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/keyservers.cpp b/keyservers.cpp
index a63a872..808442b 100644
--- a/keyservers.cpp
+++ b/keyservers.cpp
@@ -218,7 +218,10 @@ void KeyServer::slotSearch()
connect(m_listpop->buttonBox, &QDialogButtonBox::accepted, this, &KeyServer::slotPreImport);
connect(m_listpop->kLVsearch, &QTreeView::activated, m_dialogserver, &QDialog::accepted);
connect(m_listpop->buttonBox, &QDialogButtonBox::rejected, this, &KeyServer::handleQuit);
- connect(m_listpop->qLEID, SIGNAL(clearButtonClicked()), m_listpop->kLVsearch->selectionModel(), SLOT(clearSelection()));
+ connect(m_listpop->qLEID, &QLineEdit::textChanged, this, [&] (const QString & text) {
+ if (text.isEmpty())
+ m_listpop->kLVsearch->selectionModel()->clearSelection();
+ });
m_listpop->kLVsearch->setSelectionMode(QAbstractItemView::ExtendedSelection);