[Bug 64279] kdevelop doesnt store some global/project settings

Jens Dagerbo jens.dagerbo at swipnet.se
Sun Dec 7 21:11:03 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=64279     
jens.dagerbo at swipnet.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From jens.dagerbo at swipnet.se  2003-12-07 21:10 -------
Subject: kdevelop/parts/fileselector

CVS commit by dagerbo: 

Make FileSelector save/restore settings properly. This fixes the remaining verified issues reported in #64279.

Patch reviewed by Anders Lund.

CCMAIL: 64279-done at bugs.kde.org


  M +0 -1      fileselector_part.cpp   1.21
  M +6 -4      fileselector_widget.cpp   1.12


--- kdevelop/parts/fileselector/fileselector_part.cpp  #1.20:1.21
@@ -54,5 +54,4 @@ FileSelectorPart::~FileSelectorPart()
 {
     if (m_filetree){
-        m_filetree->writeConfig( instance()->config(), "fileselector" );
         mainWindow()->removeView( m_filetree );
     }

--- kdevelop/parts/fileselector/fileselector_widget.cpp  #1.11:1.12
@@ -227,5 +227,7 @@ KDevFileSelector::KDevFileSelector( File
 
 KDevFileSelector::~KDevFileSelector()
-{}
+{
+        writeConfig( m_part->instance()->config(), "fileselector" );
+}
 //END Constroctor/Destrctor
 
@@ -685,5 +687,5 @@ KFSConfigPage::KFSConfigPage( QWidget *p
 void KFSConfigPage::apply()
 {
-    KConfig *config = kapp->config();
+    KConfig *config = fileSelector->m_part->instance()->config();
     config->setGroup( "fileselector" );
     // toolbar
@@ -740,8 +742,8 @@ void KFSConfigPage::reload()
 void KFSConfigPage::init()
 {
-    KConfig *config = kapp->config();
+    KConfig *config = fileSelector->m_part->instance()->config();
     config->setGroup( "fileselector" );
     // toolbar
-    QStringList l = config->readListEntry( "fstoolbar", ',' );
+    QStringList l = config->readListEntry( "toolbar actions", ',' );
     if ( l.isEmpty() ) // default toolbar
         l << "up" << "back" << "forward" << "home" <<




More information about the KDevelop-devel mailing list