Bug 53235

Summary: highlight does not keep nor save changed mime type info
Product: [Applications] kate Reporter: Peter Soetens <peter.soetens>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Peter Soetens 2003-01-21 16:14:06 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    Debian testing/unstable Packages
Compiler:          2.95 
OS:          Linux

Choosing another mime type for a Highlight mode (C++,...) does not have any effect after the configure dialog box is closed.

to reproduce :

Go to Settings -> Configure Editor -> Highlighting -> Highlight Modes,

Select C++ Highlight,
click the mime type icon,
select any other type,
press OK,
(everything seems to have changed correctly)
press OK,

now recheck the settings again performing the same steps and you will notice that the changes did not stay but reverted to the old settings.

Same with kdevelop 3.0 alpha 2
Comment 1 Hamish Rodda 2003-01-25 06:13:05 UTC
This is a strange one... if you press apply twice it works ;) 
 
now to track it down... 
Comment 2 Hamish Rodda 2003-01-25 07:40:00 UTC
Subject: kdelibs/kate/part

CVS commit by rodda: 

Fix highlighting changes not getting applied until the second apply.

Needs a backport.

CCMAIL:53235-done@bugs.kde.org


  M +2 -2      katedialogs.cpp   1.43


--- kdelibs/kate/part/katedialogs.cpp  #1.42:1.43
@@ -296,7 +296,7 @@ void HlConfigPage::apply ()
   if (m_ready)
   {
+    page->saveData();
     hlManager->setHlDataList(hlDataList);
     hlManager->setDefaults(defaultStyleList);
-    page->saveData();
   }
 }