Commit 59979083 authored by Frédéric Brière's avatar Frédéric Brière
Browse files

Fix addItem() group name in ConfigDictionarySelector::updateWidgets()

BUG: 418108
parent 371441d8
......@@ -31,7 +31,8 @@ void ConfigDictionarySelector::updateWidgets()
{
QStringList names;
_config->setCurrentGroup( "dicts_" + _dictName );
QString groupName = "dicts_" + _dictName;
_config->setCurrentGroup( groupName );
KConfigSkeletonItem *item = _config->findItem( _dictName + "__NAMES" );
if( item != nullptr )
{
......@@ -43,7 +44,7 @@ void ConfigDictionarySelector::updateWidgets()
QString name = _dictName + '_' + it;
if ( ! _config->findItem( name ) )
{
_config->addItem( new KConfigSkeleton::ItemString( _dictName, it, *new QString() ), name );
_config->addItem( new KConfigSkeleton::ItemString( groupName, it, *new QString() ), name );
//Don't touch the *new QString()... that's a reference for a reason... stupid KDE
}
}
......
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