Fix %{CurrentProject:Path}

Was returning the same as %{CurrentProject:FilePath}

Task-number: QTCREATORBUG-4533
Reviewed-by: Robert Loehning
This commit is contained in:
con
2011-04-15 16:43:47 +02:00
parent 21639889b1
commit 5515703dc3

View File

@@ -1050,7 +1050,7 @@ void ProjectExplorerPlugin::updateVariable(const QString &variable)
} else if (variable == QLatin1String(kCurrentProjectPath)) {
if (currentProject() && currentProject()->file()) {
Core::VariableManager::instance()->insert(variable,
QFileInfo(currentProject()->file()->fileName()).filePath());
QFileInfo(currentProject()->file()->fileName()).path());
} else {
Core::VariableManager::instance()->remove(variable);
}