summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2012-03-12 19:23:10 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2012-07-15 14:43:02 (GMT)
commit4999235f1f923993143131384369863c30e03222 (patch)
tree333c5797a7fe37aeb51009eda5e2dd119ecc697a
parent17eb185ca80b028d86a5c24da6d88121a5037de6 (diff)
fix keyserver search not showing the last resultv4.8.5KDE/4.8
(cherry picked from commit 1ad41e005c5759bf5f636f095f549bf3a6d92d0f) BUG:303544 FIXED-IN:4.8.5 This has been sitting on master for a while and is already part of what will become SC 4.9. Fix it also for 4.8.5.
-rw-r--r--transactions/kgpgkeyserversearchtransaction.cpp9
-rw-r--r--transactions/kgpgkeyserversearchtransaction.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/transactions/kgpgkeyserversearchtransaction.cpp b/transactions/kgpgkeyserversearchtransaction.cpp
index 61b0173..670642c 100644
--- a/transactions/kgpgkeyserversearchtransaction.cpp
+++ b/transactions/kgpgkeyserversearchtransaction.cpp
@@ -62,6 +62,15 @@ KGpgKeyserverSearchTransaction::nextLine(const QString &line)
}
void
+KGpgKeyserverSearchTransaction::finish()
+{
+ if (!m_keyLines.isEmpty()) {
+ emit newKey(m_keyLines);
+ m_keyLines.clear();
+ }
+}
+
+void
KGpgKeyserverSearchTransaction::setPattern(const QString &pattern)
{
replaceArgument(m_patternPos, pattern);
diff --git a/transactions/kgpgkeyserversearchtransaction.h b/transactions/kgpgkeyserversearchtransaction.h
index 8c6d054..2b0837a 100644
--- a/transactions/kgpgkeyserversearchtransaction.h
+++ b/transactions/kgpgkeyserversearchtransaction.h
@@ -59,6 +59,7 @@ signals:
protected:
virtual bool preStart();
virtual bool nextLine(const QString &line);
+ virtual void finish();
private:
QStringList m_keyLines; ///< the lines belonging to one key