KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
124553
:
doesn't remember config about colors in card view
P
roduct
:
kaddressbook
Co
m
ponent
:
general
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
0
Description
:
Opened:
2006-03-30 12:13
Last Changed:
2006-04-07 15:50:52
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.
Comment
#1
Tobias Koenig 2006-04-07 15:50:51
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()); } }
P
latform
:
Ubuntu Packages
O
S
:
Linux
K
eywords
:
People
Reporter
:
Andrea Di Menna
Assigned To
:
Tobias Koenig
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In