[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_2_BRANCH: kdebase/kcontrol/filetypes
From: Waldo Bastian <bastian () kde ! org>
Date: 2004-03-02 17:09:44
Message-ID: 20040302170944.9360C90C7 () office ! kde ! org
[Download RAW message or body]
CVS commit by waba:
We must use KConfig otherwise config.deleteEntry doesn't
properly cancel out settings already present in system files.
(BR58545)
M +3 -4 typeslistitem.cpp 1.42.2.2
--- kdebase/kcontrol/filetypes/typeslistitem.cpp #1.42.2.1:1.42.2.2
@@ -231,8 +231,7 @@ void TypesListItem::sync()
if (isMimeTypeDirty())
{
- QString loc = m_mimetype->desktopEntryPath();
- loc = locateLocal("mime", loc);
-
- KSimpleConfig config( loc );
+ // 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();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic