kdelibs/kdecore

Waldo Bastian bastian at kde.org
Tue Sep 23 10:19:09 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 22 September 2003 23:14, Ingo Klöcker wrote:
> I'm pretty sure that this very commit is responsible for some strange
> problems with KMail. Although the code that writes the configuration is
> definitely executed (I verified this with kdDebugs) after program exit
> the kmailrc contains old values. So apparently the changed
> configuration was never really written to disk.
>
> Two symptoms (which unfortunately only occur sporadically) in KMail are:
> - Wrong cached number of unread messages after program start although
> the correct number was "written" on program exit.
> - Wrong current message (that's the message that was the last current
> message for a folder). If there are no new messages then the last
> current message is selected if one enters the folder.
>
> I just had the second problem with my inbox folder. Each time I started
> KMail the second message was selected even though I selected the first
> message before quitting KMail. I reproduced this a few times by
> starting KMail, selecting the first message in inbox and quitting KMail
> again. Each time the second message was selected after program start.
> Then I reverted the above commit, compiled and installed kdelibs and
> tried to reproduce the problem. On the first start of course still the
> second message was selected (because the config file still contained
> the wrong information). But on the second start the first message
> (which I of course had selected before quitting) was selected. This
> seems to confirm my assumption that it's this very commit that broke
> KConfig.

Indeed, thanks for the detailed report. It should be fixed now.

When debugging I discovered that KMail uses two KConfig objects that both 
operate on kmailrc. It would be more efficient if you could manage to share a 
single configuration object. I assume that Kmail uses two because one is used 
for the part and one is used for the shell? Maybe KConfig should provide a 
factory for refcounted config objects for such cases? 

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD4DBQE/cBAUN4pvrENfboIRAsgAAKCKXhj1qmXek0FbvAXfoIguOK+XvQCY/q0B
gyNQhU1+qPLmSBoBSpkrwg==
=CL8s
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list