[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim/KDE/4.14] libkdepim/addressline: Clean up list of completion. Otherwise we have a lot of ent
From:       Montel Laurent <montel () kde ! org>
Date:       2015-02-11 12:48:22
Message-ID: E1YLWiM-0006W8-4O () scm ! kde ! org
[Download RAW message or body]

Git commit e4a646f6fb2b486fc83ca922c03410ace66d0a28 by Montel Laurent.
Committed on 11/02/2015 at 11:58.
Pushed by mlaurent into branch 'KDE/4.14'.

Clean up list of completion. Otherwise we have a lot of entries even if collection \
was removed

M  +4    -0    libkdepim/addressline/completionordereditor.cpp

http://commits.kde.org/kdepim/e4a646f6fb2b486fc83ca922c03410ace66d0a28

diff --git a/libkdepim/addressline/completionordereditor.cpp \
b/libkdepim/addressline/completionordereditor.cpp index e7986db..b05ee5a 100644
--- a/libkdepim/addressline/completionordereditor.cpp
+++ b/libkdepim/addressline/completionordereditor.cpp
@@ -372,6 +372,10 @@ void CompletionOrderEditor::slotOk()
 {
     if ( mDirty ) {
         int w = 100;
+        //Clean up order
+        KConfigGroup group( configFile(), "CompletionWeights" );
+        group.deleteGroup();
+
         for ( int itemIndex = 0; itemIndex < mListView->topLevelItemCount(); \
++itemIndex ) {  CompletionViewItem *item =
                     static_cast<CompletionViewItem *>( mListView->topLevelItem( \
itemIndex ) );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic