Summary: | custom c++ project: add/remove files broken | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Daniel Franke <franke.daniel> |
Component: | Build tools: Custom Makefiles | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | greg_g |
Priority: | NOR | ||
Version: | 3.1.91 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | A patch to fix the bug by using the file path rather than the name. |
Description
Daniel Franke
2005-02-08 16:02:37 UTC
*** This bug has been confirmed by popular vote. *** The following simple patch to ./buildtools/custommakefiles/customprojectpart.cpp fixes the bug 191,192c191,193 < QString contextFileName = URLUtil::canonicalPath(fcontext->urls().first().fileName()); < bool inProject = project()->isProjectFile(contextFileName); --- > QString contextFileName = URLUtil::canonicalPath(fcontext->urls().first().path()); > > bool inProject = project()->isProjectFile(contextFileName); if you could redo the diff with "diff -u" and attach it the bugreport, that would be great. Thanks. :) Created attachment 10323 [details]
A patch to fix the bug by using the file path rather than the name.
Uses the path to the file rather than the file name, so that files not in the
root of the project can be added or removed
I resubmitted the patch some time ago. Has anyone attempted to test this? I downloaded 3.2.1 and had to apply my own patch because it didn't make it into the release. I have tried the patch against 3.2.0. It works perfectly Thanks David Guthrie, Your patch works for me also against 3.2.0 release. Fixed in svn, relative and absolute paths were not handled correctly. The patch was slightly more complicated than the one suggested here. http://lists.kde.org/?l=kde-commits&m=113285732705490&w=2 Alex |