On Thursday 27 October 2005 01:36, Allen Winter wrote: > On Wednesday 26 October 2005 08:08, Martin Koller wrote: > > On Friday 21 October 2005 22:40, Adriaan de Groot wrote: > > > On Friday 21 October 2005 17:28, Allen Winter wrote: > > > > 1. Kmail folder properties (esp. the Act on new/unread.. and > > > > Keep replies) get set/reset strangely by themselves. > > > > > > Get this every time KMail is kill -TERM'ed, yup; most folders > > > lose their 'act on new' setting. And kill -TERM happens often, > > > because kmail hangs on me regularly and I haven't been able to > > > track down why. > > > > I think I have a fix for this (attached). > > > > A little description of what I found: > > > > Whenever the folder-properties dialog is closed, writeConfig() is > > called, which results in kmailrc only holding (for this folder) > > the setting isOpen = true > > > > The rest of the setting are only stored to disk, when you change > > to another folder. > > > > When now you kill kmail before the rest is written, then > > obviously some defaults are used the next time ... (which means, > > about 40 (!) settings are lost) > > > > isOpen = true is created from > > KMFolderTree::writeIsListViewItemOpen(..) > > > > I don't know how this whole KConfig stuff is supposed to work, > > but what I did is, I added here a call to > > folder->storage()->writeConfig(); which is also done in the > > FolderDiaGeneralTab::save() method. > > > > I don't know why the rest of the settings are not written when > > isOpen is written, but at least the patch solves the problem ... > > > > OK to commit ? I see this got committed. > I applied your patch locally in my sandbox and it seems to work for > me. I changed a couple folder properties, then ran kill -TERM > `pidof kontact` and when I restarted kontact the changed properties > where still there. And then reverted. "The previous commit was done too fast, as Ingo already fixed it the right way ..." But I guess if the bug is fixed then 115464 can be closed, no? Don Sanders. _______________________________________________ kde-pim mailing list kde-pim@kde.org https://mail.kde.org/mailman/listinfo/kde-pim kde-pim home page at http://pim.kde.org/