[Bug 80128] default projects directory not preserved (if different from home directory)

Jens Dagerbo jens.dagerbo at swipnet.se
Thu Apr 22 21:39:03 UTC 2004


------- 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=80128      
jens.dagerbo swipnet se changed:

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



------- Additional Comments From jens.dagerbo swipnet se  2004-04-22 19:15 -------
CVS commit by dagerbo: 

Read DefaultProjectsDir from the correct place.

Patch by Stefano Rosanelli. Thanks!

CCMAIL: 80128-done bugs kde org


  M +3 -1      projectmanager.cpp   1.74


--- kdevelop/src/projectmanager.cpp  #1.73:1.74
 @ -128,5 +128,7  @ void ProjectManager::createActions( KAct
 void ProjectManager::slotOpenProject()
 {
-  QString defaultProjectsDir = kapp->config()->readPathEntry("DefaultProjectsDir", QDir::homeDirPath()+"/");
+        KConfig *config = kapp->config();
+        config->setGroup("General Options");
+        QString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", QDir::homeDirPath()+"/");
 
   KURL url = KFileDialog::getOpenURL(defaultProjectsDir,




More information about the KDevelop-devel mailing list