Summary: | Filename Patterns aren't saved correctly. | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Frerich Raabe <raabe> |
Component: | kcm_filetypes | Assignee: | Marie Loise Nolden <nolden> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Frerich Raabe
2001-11-18 23:50:31 UTC
Subject: Defeated The problem is that the variable TypeListItem::m_mimetype returns the same (original) list of patterns regardless of whether we had synced or not. The problem lies with KMimeType. It needs some sort of refresh() operator, without which this bug cannot be solved. When you add foo, m_mimetype->patterns() returns original, while m_patterns has original+foo, so the comparison in isDirty() fails and the new mimeType is written. Now, if you remove foo, m_mimetype->patterns() still returns original(!), while m_patterns has original, so the isDirty() comparison succeeds and we don't sync again, even though we should. An ugly hack would be to use a local variable m_oldpatterns, but that simply hides the problem in KMimeType. Anyone have an idea? Regards, Ravi Subject: kdebase/kcontrol/filetypes Get an updated KMimeType::Ptr from ksycoca after it ran. Ravikiran: thanks for the investigation, it helped. |