Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1668a9ef authored by Laurent Montel's avatar Laurent Montel 😁

Use an unique file not depend against application

parent ba57f65b
......@@ -1030,7 +1030,8 @@ void AddresseeLineEdit::Private::slotConfigureBalooBlackList()
void AddresseeLineEdit::Private::loadBalooBlackList()
{
KConfigGroup group( KGlobal::config(), "AddressLineEdit" );
KSharedConfig::Ptr config = KSharedConfig::openConfig( QLatin1String("kpimbalooblacklist") );
KConfigGroup group( config, "AddressLineEdit" );
m_balooBlackList = group.readEntry( "BalooBackList", QStringList() );
}
......
......@@ -143,7 +143,8 @@ void BlackListBalooEmailCompletionDialog::slotSave()
{
const QHash<QString, bool> result = mEmailList->blackListItemChanged();
if (!result.isEmpty()) {
KConfigGroup group( KGlobal::config(), "AddressLineEdit" );
KSharedConfig::Ptr config = KSharedConfig::openConfig( QLatin1String("kpimbalooblacklist") );
KConfigGroup group( config, "AddressLineEdit" );
QStringList blackList = group.readEntry( "BalooBackList", QStringList() );
KPIM::BlackListBalooEmailUtil util;
util.initialBlackList(blackList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment