[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9
Maximiliano Curia
maxy at moszumanska.debian.org
Mon May 9 09:08:41 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=d40db4f
The following commit has been merged in the master branch:
commit d40db4f00865243ccde6f8696248519f58ec01a7
Author: Martin Klapetek <mklapetek at kde.org>
Date: Fri Feb 6 17:11:08 2015 +0100
[kpeople] Groups need to be SELECTed DISTINCTly
The cache actually didn't have any sort of UNIQUE on the groupId so it
could happen that groups were simply reinserted with teh same ids. This
is now fixed in the cache but this still seems like a useful thing to
have nevertheless.
---
kpeople/datasourceplugin/im-persons-data-source.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kpeople/datasourceplugin/im-persons-data-source.cpp b/kpeople/datasourceplugin/im-persons-data-source.cpp
index 92032c7..ca9fa2b 100644
--- a/kpeople/datasourceplugin/im-persons-data-source.cpp
+++ b/kpeople/datasourceplugin/im-persons-data-source.cpp
@@ -133,7 +133,7 @@ void KTpAllContacts::loadCache()
}
QSqlQuery query(db);
- query.exec(QLatin1String("SELECT groupName FROM groups ORDER BY groupId;"));
+ query.exec(QLatin1String("SELECT DISTINCT groupName FROM groups ORDER BY groupId;"));
QStringList groupsList;
while (query.next()) {
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list