--- ./buildtools/custommakefiles/customprojectpart.cpp~ 2005-03-23 15:11:53.000000000 -0500 +++ ./buildtools/custommakefiles/customprojectpart.cpp 2005-03-23 15:11:53.000000000 -0500 @@ -188,8 +188,9 @@ if( fcontext->urls().size() == 1 ) { - 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); QString popupstr = QFileInfo(contextFileName).fileName(); if (contextFileName.startsWith(projectDirectory()+ "/")) contextFileName.remove(0, projectDirectory().length()+1);