Summary: | One can add the same file twice in QMake Manager | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Stefan Zickler <szickler> |
Component: | Build tools: QMake | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jeroen.dierckx |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Stefan Zickler
2004-01-24 18:15:46 UTC
I can confirm this problem, it does this with the "add new class" wizard, ie you can specify the same class name twice and end up with the same file in the project twice, however only if the class originly generated by the wizard is unedited. CVS commit by dymo: Do not allow to add the same file twice. CCMAIL: 73420-done@bugs.kde.org M +2 -1 trollprojectpart.cpp 1.76 --- kdevelop/buildtools/qmake/trollprojectpart.cpp #1.75:1.76 @@ -383,4 +383,5 @@ void TrollProjectPart::addFiles ( const for (QStringList::iterator it = files.begin(); it != files.end(); ++it) // if (!(*it).contains(projectDirectory())) + if (!isProjectFile(projectDirectory() + "/" + (*it))) *it = projectDirectory() + "/" + (*it); |