Bug 80128 - default projects directory not preserved (if different from home directory)
Summary: default projects directory not preserved (if different from home directory)
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 14:44 UTC by Stefano Rosanelli
Modified: 2004-04-22 19:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (786 bytes, patch)
2004-04-22 14:46 UTC, Stefano Rosanelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Rosanelli 2004-04-22 14:44:08 UTC
Version:           3.0.90-CVS (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
OS:          Linux

KDevelop compiled from latest CVS.

To reproduce (only if default projects dir != home dir):
1. open kdevelop
2. "Open Project..", fine
3. "Open Project.." again, file selector points to home dir
Comment 1 Stefano Rosanelli 2004-04-22 14:46:23 UTC
Created attachment 5728 [details]
patch

super-simple-trivial patch... ;-)
Comment 2 Jens Dagerbo 2004-04-22 19:15:37 UTC
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,