[SCM] ktp-contact-runner packaging branch, master, updated. debian/15.12.1-2-244-g38a1f58

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 17:50:45 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-runner.git;a=commitdiff;h=6b6e567

The following commit has been merged in the master branch:
commit 6b6e567f098bcf2372b2a63209374090f5a6c108
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Sun Sep 29 04:07:19 2013 +0000

    Do not include the @blah.com when matching contacts
    
    BUG: 325405
    REVIEW: 112988
---
 src/contactrunner.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/contactrunner.cpp b/src/contactrunner.cpp
index 08bfb73..51c0b88 100644
--- a/src/contactrunner.cpp
+++ b/src/contactrunner.cpp
@@ -349,7 +349,10 @@ void ContactRunner::matchContacts(Plasma::RunnerContext &context)
             }
 
             if (!t.contains(contactQuery, Qt::CaseInsensitive)) {
-                const QString &id = contact->id();
+                //strip everything after the @, this is too avoid matching all '@facebook' addresses
+                //when typing the word 'book'
+                //if no @ symbol the entire string is searched
+                const QString &id = contact->id().left(contact->id().indexOf(QLatin1Char('@')));
                 if (!id.contains(contactQuery, Qt::CaseInsensitive)) {
                     continue;
                 }

-- 
ktp-contact-runner packaging



More information about the pkg-kde-commits mailing list