Review Request: KDevelop rewrite the .kdev4 file after opening a project and replaces the project name with the directory name

Bastian Leyer bastian.leyer at
Tue May 1 20:48:06 UTC 2012

This is an automatically generated e-mail. To reply, visit:

(Updated May 1, 2012, 8:48 p.m.)

Review request for KDevelop.


The diff regards Milians comment.
- new function "writeProjectSettingsToConfigFile()" to write the project file
- new var "writeProjectConfigToFile" to decide if the project file must be written


KDevelop rewrite the .kdev4 file after opening a project.
The project name I entered in the project information dialog is replaced with the directory name.

Steps to Reproduce:
1. Create a project directory named "myproject"
2. Create in the project directory the directories "trunk" and "branches"
3. Create in the "trunk" directory a file named "makefile"
4. Import the Project by selecting the makefile
5. Enter the project name "My Project" in the "Project information" dialog
6. Everything's fine. KDevelop shows in the 'Projects' toolview the correct project name
7. Close the project
8. Reopen the project by selecting the .kdev4 file in the trunk directory
9. the project is named "trunk"
10. Look into the .kdev4 file. The project configuration now contains the project name "trunk"

another scenario:
1. Select Project->New From Template
2. Choose a "Standard Terminal" application
3. Use the project name "myproject"
4. Ignore the "Version Control" Page and finish the wizard
5. Use the "build directory" default settings
6. The new project is now shown as "myproject"
7. Close the project
8. Rename the project directory to "foobar"
9. Reopen the project with the .kdev4 file
10. Now the project is named "foobar"

This addresses bug

Diffs (updated)

  shell/projectcontroller.cpp 38084df 




Bastian Leyer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list