[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kcontrol/filetypes
From:       Waldo Bastian <bastian () kde ! org>
Date:       2004-03-02 17:08:36
Message-ID: 20040302170836.A1D0490C7 () 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.44


--- kdebase/kcontrol/filetypes/typeslistitem.cpp  #1.43:1.44
@@ -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