[SCM] ktp-kded-integration-module packaging branch, master, updated. debian/15.12.1-2-382-gbd961c2

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:15:55 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-kded-module.git;a=commitdiff;h=915ddae

The following commit has been merged in the master branch:
commit 915ddae3d8f1816cd20fe40c59d2209e42ac51f4
Author: Martin Klapetek <mklapetek at kde.org>
Date:   Fri Feb 6 16:58:27 2015 +0100

    When dropping the contacts table, also drop the groups table
    
    No point dumping one and keeping the other (and if there's no groups
    table it will do nothing). Win-win.
---
 contact-cache.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/contact-cache.cpp b/contact-cache.cpp
index 5c72db5..79f70d5 100644
--- a/contact-cache.cpp
+++ b/contact-cache.cpp
@@ -84,6 +84,8 @@ ContactCache::ContactCache(QObject *parent):
         QSqlQuery preparationsQuery(m_db);
         if (m_db.tables().contains(QLatin1String("contacts"))) {
             preparationsQuery.exec(QStringLiteral("DROP TABLE 'contacts';"));
+            // Also drop the groups table
+            preparationsQuery.exec(QStringLiteral("DROP TABLE 'groups';"));
         }
 
         preparationsQuery.exec(createTableQuery);

-- 
ktp-kded-integration-module packaging



More information about the pkg-kde-commits mailing list