--- kdebase-3.2/kcontrol/filetypes/typeslistitem.cpp-- 2004-03-02 18:17:17.000000000 +0100 +++ kdebase-3.2/kcontrol/filetypes/typeslistitem.cpp 2004-03-02 18:17:50.000000000 +0100 @@ -230,11 +230,10 @@ void TypesListItem::sync() if (isMimeTypeDirty()) { - QString loc = m_mimetype->desktopEntryPath(); - loc = locateLocal("mime", loc); - - KSimpleConfig config( loc ); - config.setDesktopGroup(); + // We must use KConfig otherwise config.deleteEntry doesn't + // properly cancel out settings already present in system files. + KConfig config( m_mimetype->desktopEntryPath(), false, false, "mime" ); + config.setDesktopGroup(); config.writeEntry("Type", "MimeType"); config.writeEntry("MimeType", name());