Commit 7e1ee7d1 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Use the _right_ project path.

parent a24ad171
......@@ -28,6 +28,7 @@
**************************************************************************/
#include "genericprojectnodes.h"
#include <QDir>
#include <QFileInfo>
#include <QSettings>
#include <QtDebug>
......@@ -66,12 +67,12 @@ void GenericProjectNode::refresh()
FileNode *projectFileNode = new FileNode(projectFilePath(), ProjectFileType, /*generated = */ false);
fileNodes.append(projectFileNode);
foreach (const QString &file, _files) {
QFileInfo fileInfo(file);
QDir projectPath(path());
foreach (const QString &file, _files) {
QFileInfo fileInfo(projectPath, file);
QString filePath = fileInfo.absoluteFilePath();
FileType fileType = SourceType;
FileType fileType = SourceType; // ### FIXME
FileNode *fileNode = new FileNode(filePath, fileType, /*generated = */ false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment