[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 113315] New: Project->New class incorrectly modify .pro file for qmake based projects (Debian b
From:       kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de
Date:       2005-09-25 18:36:34
Message-ID: 20050925203633.113315.jeremy.laine () m4x ! org
[Download RAW message or body]

------- 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);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic