Version: (using KDE KDE 3.5.1) Installed from: Ubuntu Packages kaddressbook seems to forget config about color in card view mode. It doesn't accept the background config either. Using kde 3.5.2 here.
SVN commit 527264 by tokoe: Use KConfigGroup to reset the config group automatically. BUGS: 124553 M +7 -11 kcolordialog.cpp --- branches/KDE/3.5/kdelibs/kdeui/kcolordialog.cpp #527263:527264 @@ -1253,30 +1253,26 @@ void KColorDialog::readSettings() { - KConfig* config = KGlobal::config(); + KConfigGroup group( KGlobal::config(), "Colors" ); - QString oldgroup = config->group(); - - config->setGroup("Colors"); - QString palette = config->readEntry("CurrentPalette"); + QString palette = group.readEntry("CurrentPalette"); d->table->setPalette(palette); - config->setGroup( oldgroup ); } void KColorDialog::slotWriteSettings() { - KConfig* config = KGlobal::config(); - config->setGroup("Colors"); + KConfigGroup group( KGlobal::config(), "Colors" ); + QString palette = d->table->palette(); - if (!config->hasDefault("CurrentPalette") && + if (!group.hasDefault("CurrentPalette") && (d->table->palette() == d->originalPalette)) { - config->revertToDefault("CurrentPalette"); + group.revertToDefault("CurrentPalette"); } else { - config->writeEntry("CurrentPalette", d->table->palette()); + group.writeEntry("CurrentPalette", d->table->palette()); } }
The development of the old KAddressBook will be discontinued for KDE 4.4. Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.
You need to log in before you can comment on or make changes to this bug.