Bug 311766

Summary: FIle > New from Template wizard tries to put files in /
Product: [Applications] kdevelop Reporter: Luca Beltrame <lbeltrame>
Component: file createAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: mail
Priority: NOR    
Version: git master   
Target Milestone: 4.3.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Luca Beltrame 2012-12-16 11:01:29 UTC
When creating a new C++ class using the "FIle > New From Template" wizard the paths of the files to be written to disk with the class definition have a starting path of /. This will make the saving fail (additionally without warnings) if accepted. 


Reproducible: Always

Steps to Reproduce:
1.  Create a new KDevelop project
2. Select File > New from Template
3. Select C++ > Basic > Basic 
4. Create a class named "Dummy"
5. Keep default parameters for members and license
6. Go to the final step of the wizard, "Output"
Actual Results:  
Header line edit points to /dummy.h
Implementation line edit points to /dummy.cpp

Expected Results:  
Both Header and Implementation line edits should point to files within the project's directory, e.g. if a project is in /home/myuser/projects/foo, they should be /home/myuser/projects/foo/dummy.{h, cpp}

Latest git master of kdevelop and kdevplatform.
Comment 1 Kevin Funk 2012-12-23 10:24:13 UTC

*** This bug has been marked as a duplicate of bug 312105 ***