Commit 7bf1c64d authored by Daniel Teske's avatar Daniel Teske
Browse files

Generic Project: Use relative paths for importing

Task-number: QTCREATORBUG-10387
Change-Id: I75746491dc7dee358748aa89829ba2d6f12c0e1b
Reviewed-by: default avatarTobias Hunger <>
parent 15c8bdeb
......@@ -163,11 +163,15 @@ Core::GeneratedFiles GenericProjectWizard::generateFiles(const QWizard *w,
QStringList includePaths;
foreach (const QString &path, paths) {
QFileInfo fileInfo(dir, path);
QFileInfo fileInfo(path);
QDir thisDir(fileInfo.absoluteFilePath());
if (! thisDir.entryList(nameFilters, QDir::Files).isEmpty())
if (! thisDir.entryList(nameFilters, QDir::Files).isEmpty()) {
QString relative = dir.relativeFilePath(path);
if (relative.isEmpty())
relative = QLatin1String(".");
Core::GeneratedFile generatedCreatorFile(creatorFileName);
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