Bug 80625

Summary: "default mark type" (breakpoints or bookmarks) not saved in kdeveloprc
Product: [Applications] kate Reporter: Andreas Schallenberg <Andreas.Schallenberg>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: afrox, bugs.kde.org, kaplun, kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andreas Schallenberg 2004-04-29 16:19:28 UTC
Version:           3.0.3 (using KDE KDE 3.2.2)
Installed from:    SuSE RPMs
OS:          Linux

The kdeveloprc contains the switch
"Default Mark Type" for setting
breakpoints (value 2) or bookmarks
(value 1).

The setting made using the context menu
of the appropriate column (GUI) is not being
saved to this switch when kdevelop is closed.
Comment 1 Jan Trmal 2004-08-08 10:58:16 UTC
Yes, it is related to CVS HEAD (>=20040808) version, too. 
Comment 2 Stefano Rosanelli 2004-09-17 16:06:38 UTC
Still present in version 3.1, but I think the problem comes from kate not from kdevelop
Comment 3 Matt Rogers 2004-12-12 05:46:00 UTC
Confirmed with 3.1.90 (KDevelop 3.2 Alpha 1). Although this is a kate part bug rather than a kdevelop bug.
Comment 4 Matt Rogers 2004-12-30 04:52:10 UTC
*** Bug 95940 has been marked as a duplicate of this bug. ***
Comment 5 Jens Dagerbo 2005-01-14 17:54:48 UTC
*** Bug 96984 has been marked as a duplicate of this bug. ***
Comment 6 Matt Rogers 2005-01-21 17:22:38 UTC
*** Bug 97596 has been marked as a duplicate of this bug. ***
Comment 7 Andreas Schallenberg 2005-02-01 19:39:40 UTC
Can be reproduced in KDE 3.4 Beta 1.
Comment 8 Anders Lund 2005-02-16 22:27:17 UTC
CVS commit by alund: 


Flush the global view config after setting the default mark type.
For interrested parties in #80625: If you use cvs HEAD, could you please confirm that this fixes the bug?
BUG: 80625


  M +7 -0      kateviewhelpers.cpp   1.26


--- kdelibs/kate/part/kateviewhelpers.cpp  #1.25:1.26
@@ -33,4 +33,5 @@
 #include "kateviewinternal.h"
 
+#include <kapplication.h>
 #include <kglobalsettings.h>
 #include <klocale.h>
@@ -912,5 +913,11 @@ void KateIconBorder::showMarkMenu( uint 
 
   if ( result > 100)
+  {
      KateViewConfig::global()->setDefaultMarkType (vec[result-100]);
+     // flush config, otherwise it isn't nessecarily done
+     KConfig *config = kapp->config();
+     config->setGroup("Kate View Defaults");
+     KateViewConfig::global()->writeConfig( config );
+  }
   else
   {


Comment 9 Andreas Schallenberg 2005-02-20 19:44:02 UTC
I'll test this when the next 3.4 release or beta is available and report here.