From kdevelop-bugs Sun Sep 25 18:36:34 2005 From: kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de Date: Sun, 25 Sep 2005 18:36:34 +0000 To: kdevelop-bugs Subject: [Bug 113315] New: Project->New class incorrectly modify .pro file for qmake based projects (Debian b Message-Id: <20050925203633.113315.jeremy.laine () m4x ! org> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=118306942308087 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=113315 Summary: Project->New class incorrectly modify .pro file for qmake based projects (Debian bug #315170) Product: kdevelop Version: 3.2.2 Platform: Debian testing OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general AssignedTo: kdevelop-bugs kdevelop org ReportedBy: jeremy.laine m4x org Version: 3.2.2 (using KDE KDE 3.4.2) Installed from: Debian testing/unstable Packages Compiler: gcc 4.0.1 OS: Linux The manager for QMake projects does not behave correctly if you have files in the toplevel directory of the project, it prepends a slash before the file name: SOURCES += main.cpp \ form1.cpp \ thrhttp.cpp \ transfer.cpp \ transferlist.cpp \ /newclass.cpp For a fuller discussion of this issue, please refer to: http://bugs.debian.org/315170 Below is a patch to fix this issue: --- kdevelop-3.2.2/buildtools/qmake/trollprojectpart.cpp 2005-05-23 14:09:33.000000000 +0200 +++ kdevelop-3.2.2.new/buildtools/qmake/trollprojectpart.cpp 2005-09-07 10:52:20.000000000 +0200 @ -404,7 +404,7 @ for (QStringList::iterator it = files.begin(); it != files.end(); ++it) // if (!(*it).contains(projectDirectory())) if (!isProjectFile(projectDirectory() + "/" + (*it))) - *it = projectDirectory() + "/" + (*it); + *it = QDir::cleanDirPath(projectDirectory() + "/" + (*it)); m_widget->addFiles(files);